Skip to content

Commit

Permalink
Merge pull request #18887 from storybookjs/yann/sb-647-getparameters-…
Browse files Browse the repository at this point in the history
…returns-empty-object-if

Client API: return defaultValue in useParameter if story is not prepared
  • Loading branch information
yannbf authored Aug 11, 2022
2 parents 30df6a2 + a27cd54 commit cd97f8c
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions code/lib/api/src/modules/stories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,6 @@ export const init: ModuleFn<SubAPI, SubState, true> = ({
if (parameters) {
return parameterName ? parameters[parameterName] : parameters;
}

return {};
}

return null;
Expand Down

0 comments on commit cd97f8c

Please sign in to comment.