Skip to content

Commit

Permalink
add some dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
Jessica-Koch committed Jul 1, 2019
1 parent 239e73e commit 0052018
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/client-api/src/story_store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -180,9 +180,7 @@ export default class StoryStore extends EventEmitter {
const getOriginal = () => original;

// lazily decorate the story when it's loaded
const getDecorated = memoize(1)(() =>
applyDecorators(getOriginal(), getDecorators())
) as any; // not sure why, but continues to block build if not any
const getDecorated = memoize(1)(() => applyDecorators(getOriginal(), getDecorators())) as any; // not sure why, but continues to block build if not any

const storyFn = (p: any) =>
getDecorated()({ ...identification, parameters: { ...parameters, ...p } });
Expand Down

0 comments on commit 0052018

Please sign in to comment.