Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
UI: remove the frustrating zero
  • Loading branch information
Hypnosphi committed Jan 28, 2018
commit bd05a8d00d2692527ef4cb915d978d16e70a3f72
2 changes: 1 addition & 1 deletion lib/ui/src/modules/ui/components/stories_panel/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const storyProps = [
];

function hierarchyContainsStories(storiesHierarchy) {
return storiesHierarchy && storiesHierarchy.map.size;
return storiesHierarchy && storiesHierarchy.map.size > 0;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it's a place for easter eggs 😁

}

// eslint-disable-next-line react/prefer-stateless-function
Expand Down