diff --git a/ui/blocks/src/Story/Story.tsx b/ui/blocks/src/Story/Story.tsx index 039653c82..7038a122c 100644 --- a/ui/blocks/src/Story/Story.tsx +++ b/ui/blocks/src/Story/Story.tsx @@ -25,7 +25,7 @@ export const Story: FC = forwardRef( return ( {(context, rest) => { - const { story, options = {} } = context; + const { story, doc, options = {} } = context; if (story && story.renderFn) { try { const values = getControlValues(story.controls); @@ -53,7 +53,7 @@ export const Story: FC = forwardRef( console.error(e); } } - console.error('Story function not found', props, story); + console.error('Story function not found', props, doc); return null; }}