Skip to content

Commit

Permalink
storyParameters will never be falsy because it has a default value.
Browse files Browse the repository at this point in the history
  • Loading branch information
ghengeveld committed Nov 25, 2020
1 parent bf736e2 commit 0f7a3a0
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lib/client-api/src/story_store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -343,10 +343,8 @@ export default class StoryStore {
'Cannot add a story when not configuring, see https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#story-store-immutable-outside-of-configuration'
);

if (storyParameters) {
checkGlobals(storyParameters);
checkStorySort(storyParameters);
}
checkGlobals(storyParameters);
checkStorySort(storyParameters);

const { _stories } = this;

Expand Down

0 comments on commit 0f7a3a0

Please sign in to comment.