Skip to content

Commit 7bbb913

Browse files
authored
feat: Add optional params for wrapCollectionLayout function (#121)
* feat: Add optional params for wrapCollectionLayout function Pass allowComponentWithoutStories as true to render collection without a dummy story * fix: change the param names * fix: change the param name in the comment * Fix: Remove the condition to add dummy story for nested collections * fix: pr changes
1 parent bc6e8d6 commit 7bbb913

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/components/wrap-collection-layout.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,6 @@ function WrapCollectionComponent(Component) {
4242
stories = stories.slice(0, associatedMetadata.initial_stories_load_count);
4343
}
4444

45-
if(stories.length === 0) {
46-
return <div></div>
47-
}
48-
4945
const data = Object.assign({}, props, {
5046
stories: stories,
5147
associatedMetadata: associatedMetadata,

0 commit comments

Comments
 (0)