Skip to content

Commit

Permalink
fix: log doc on error
Browse files Browse the repository at this point in the history
  • Loading branch information
atanasster committed Jul 6, 2020
1 parent 9f97ffc commit 4f81cfc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ui/blocks/src/Story/Story.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export const Story: FC<StoryProps> = forwardRef(
return (
<StoryBlockContainer {...props}>
{(context, rest) => {
const { story, options = {} } = context;
const { story, doc, options = {} } = context;
if (story && story.renderFn) {
try {
const values = getControlValues(story.controls);
Expand Down Expand Up @@ -53,7 +53,7 @@ export const Story: FC<StoryProps> = forwardRef(
console.error(e);
}
}
console.error('Story function not found', props, story);
console.error('Story function not found', props, doc);
return null;
}}
</StoryBlockContainer>
Expand Down

0 comments on commit 4f81cfc

Please sign in to comment.