Skip to content

Commit

Permalink
Merge pull request #24 from ArrayKnight/fix/missing-parameters
Browse files Browse the repository at this point in the history
fix: 🐛 add default for parameters when not set
  • Loading branch information
ArrayKnight authored Jan 6, 2021
2 parents 538b620 + 70689d1 commit 813650c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/decorator.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ Decorator.displayName = 'Decorator'
export function Wrapper(
storyFn: StoryGetter,
context: StoryContext,
{ options, parameters }: WrapperSettings,
{ options, parameters = {} }: WrapperSettings,
): ReactElement {
const channel = addons.getChannel()
const message: InitializeMessage = {
Expand Down

0 comments on commit 813650c

Please sign in to comment.