Skip to content

Commit

Permalink
FIX docs-mode by using storyFn instead of getDecorated
Browse files Browse the repository at this point in the history
  • Loading branch information
ndelangen committed Jul 7, 2019
1 parent 74e48c5 commit 5177510
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion addons/docs/src/blocks/Story.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export const getStoryProps = (
return {
inline: typeof inline === 'boolean' ? inline : inlineStories,
id: previewId,
storyFn: data && data.getDecorated(),
storyFn: data && data.storyFn,
height: height || iframeHeight,
title: data && data.name,
};
Expand Down
2 changes: 1 addition & 1 deletion lib/client-api/src/story_store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ export default class StoryStore extends EventEmitter {
applyDecorators(getOriginal(), getDecorators())
);

const storyFn: StoryFn = (p: StoryContext) =>
const storyFn: StoryFn = (p: object) =>
getDecorated()({ ...identification, parameters: { ...parameters, ...p } });

_data[id] = {
Expand Down

0 comments on commit 5177510

Please sign in to comment.