Skip to content

Conversation

@thantos
Copy link
Collaborator

@thantos thantos commented Aug 25, 2022

Fixes #441

@netlify
Copy link

netlify bot commented Aug 25, 2022

Deploy Preview for effortless-malabi-1c3e77 ready!

Name Link
🔨 Latest commit 6d4c0c3
🔍 Latest deploy log https://app.netlify.com/sites/effortless-malabi-1c3e77/deploys/630812b07784d000082cfd1d
😎 Deploy Preview https://deploy-preview-444--effortless-malabi-1c3e77.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@thantos thantos requested a review from sam-goodwin August 25, 2022 22:58
@sam-goodwin sam-goodwin changed the title fix(step-functions): 441 - props are not correctly passed to step fun… fix(step-functions): props are not correctly passed to step function Aug 25, 2022
Comment on lines +1582 to +1584
isFunctionLike(args[0]) || isErr(args[0]) || typeof args[0] === "function"
? {}
: (args[1] as StepFunctionProps);
: args[0];
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What case is this catching? When would this be a function?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the actual change was changing the index from 1 to 0, the function check narrows the types it comes in as without using as, it will actually be expressions, but the type on it is a function.

);

test(
"props",
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

better test name?

thantos and others added 3 commits August 25, 2022 18:08
Signed-off-by: github-actions <github-actions@github.com>
@thantos thantos requested a review from sam-goodwin August 26, 2022 17:57
@thantos thantos merged commit a1e49fb into main Aug 26, 2022
@thantos thantos deleted the sussman/fix_441 branch August 26, 2022 18:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Updating the logging configuration for ExpressStepFunction does not trigger a redeploy

3 participants