Skip to content

Commit

Permalink
api: return defaultValue in useParameter if story is not prepared
Browse files Browse the repository at this point in the history
it was returning an empty object before, which is a breaking change.
  • Loading branch information
yannbf committed Aug 8, 2022
1 parent c8bcbeb commit a27cd54
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 a27cd54

Please sign in to comment.