Fix autodetection of used components in info addon

Closes #3989
This commit is contained in:
Martin Macko 2018-08-11 19:00:52 +02:00
parent 843236ccec
commit 258fe13227

View File

@ -330,8 +330,8 @@ class Story extends Component {
innerChildren.forEach(extract);
return;
}
if (innerChildren.props && innerChildren.props.innerChildren) {
extract(innerChildren.props.innerChildren);
if (innerChildren.props && innerChildren.props.children) {
extract(innerChildren.props.children);
}
if (
typeof innerChildren === 'string' ||