We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 70c3358 commit 361bb06Copy full SHA for 361bb06
src/components/wrap-collection-layout.js
@@ -75,7 +75,11 @@ function WrapCollectionComponent(Component) {
75
* @returns {Component} A component which can be passed collection
76
*/
77
export function wrapCollectionLayout(component) {
78
- return connect((state) => ({config: state.qt.config}))(WrapCollectionComponent(component))
+ const wrappedComponent = connect((state) => ({config: state.qt.config}))(WrapCollectionComponent(component));
79
+ if(component.storyLimit) {
80
+ wrappedComponent.storyLimit = component.storyLimit;
81
+ }
82
+ return wrappedComponent;
83
}
84
85
/**
0 commit comments