This commit is contained in:
Norbert de Langen 2017-08-17 22:59:55 +02:00
parent 67cb7dccdc
commit 7550d9945b

View File

@ -26,7 +26,7 @@ const storyProps = [
];
function hierarchyContainsStories(storiesHierarchy) {
return storiesHierarchy && storiesHierarchy.map.size
return storiesHierarchy && storiesHierarchy.map.size;
}
// eslint-disable-next-line react/prefer-stateless-function
@ -50,8 +50,8 @@ class LeftPanel extends Component {
onChange={text => onStoryFilter(text)}
/>
<div style={scrollStyle}>
{hierarchyContainsStories(storiesHierarchy)
? <Stories {...pick(this.props, storyProps)} />
{hierarchyContainsStories(storiesHierarchy)
? <Stories {...pick(this.props, storyProps)} />
: null}
</div>
</div>