From 22a9957ca25ed054fe4263e1dafe281dc8c1c29d Mon Sep 17 00:00:00 2001 From: Daniel Duan Date: Thu, 26 Oct 2017 17:39:38 -0400 Subject: [PATCH] fix info not importing docgen descriptions --- addons/info/src/components/Story.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/info/src/components/Story.js b/addons/info/src/components/Story.js index 025e22da2b0..86f89675f77 100644 --- a/addons/info/src/components/Story.js +++ b/addons/info/src/components/Story.js @@ -237,7 +237,7 @@ export default class Story extends React.Component { if (Object.keys(STORYBOOK_REACT_CLASSES).length) { Object.keys(STORYBOOK_REACT_CLASSES).forEach(key => { - if (STORYBOOK_REACT_CLASSES[key].name === this.props.context.kind) { + if (STORYBOOK_REACT_CLASSES[key].name === this.props.context.story) { retDiv =
{STORYBOOK_REACT_CLASSES[key].docgenInfo.description}
; } });