summaryrefslogtreecommitdiffstats
path: root/packages/gitbook-core/src/components/InjectedComponent.js
diff options
context:
space:
mode:
authorSamy Pessé <samypesse@gmail.com>2016-09-05 14:41:21 +0200
committerSamy Pessé <samypesse@gmail.com>2016-09-05 14:41:21 +0200
commitfe298f2a3f2a3b5d22d246ebfdb41c3d086b6da3 (patch)
tree72b2f0235a32668f9ddba7912cd627df7227dec4 /packages/gitbook-core/src/components/InjectedComponent.js
parentab3d94a55dc1fdf8082b70376212961f0ef28d1b (diff)
downloadgitbook-fe298f2a3f2a3b5d22d246ebfdb41c3d086b6da3.zip
gitbook-fe298f2a3f2a3b5d22d246ebfdb41c3d086b6da3.tar.gz
gitbook-fe298f2a3f2a3b5d22d246ebfdb41c3d086b6da3.tar.bz2
Fix error during fake rendering
Diffstat (limited to 'packages/gitbook-core/src/components/InjectedComponent.js')
-rw-r--r--packages/gitbook-core/src/components/InjectedComponent.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/gitbook-core/src/components/InjectedComponent.js b/packages/gitbook-core/src/components/InjectedComponent.js
index 39b48b2..df2c1c7 100644
--- a/packages/gitbook-core/src/components/InjectedComponent.js
+++ b/packages/gitbook-core/src/components/InjectedComponent.js
@@ -65,11 +65,11 @@ function mapStateToProps(state, props) {
}
module.exports = {
- InjectedComponent: ReactRedux.connect(InjectedComponentSet, (state, props) => {
+ InjectedComponent: ReactRedux.connect((state, props) => {
const result = mapStateToProps(state, props);
result.components = result.components.slice(0, 1);
result.withContainer = false;
return result;
- }),
- InjectedComponentSet: ReactRedux.connect(InjectedComponentSet, mapStateToProps)
+ })(InjectedComponentSet),
+ InjectedComponentSet: ReactRedux.connect(mapStateToProps)(InjectedComponentSet)
};