Skip to content

Commit

Permalink
fix: allow for existing args to be passed along
Browse files Browse the repository at this point in the history
  • Loading branch information
atanasster committed May 3, 2020
1 parent fc9a8f7 commit 7fb2841
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion integrations/storybook/src/config.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ addDecorator(
if (context.args !== undefined) {
//storybook-6 beta fake args
//@ts-ignore
return storyFn({ ...context, args: values });
return storyFn({ ...context, args: { ...context.args, ...values } });
}
//storybook 5 and 6 alphas
//@ts-ignore
Expand Down

0 comments on commit 7fb2841

Please sign in to comment.