diff --git a/src/core/plugins/view/root-injects.js b/src/core/plugins/view/root-injects.js index fc67f165..04d0131a 100644 --- a/src/core/plugins/view/root-injects.js +++ b/src/core/plugins/view/root-injects.js @@ -22,7 +22,7 @@ const RootWrapper = (reduxStore, ComponentToWrap) => class extends Component { const makeContainer = (getSystem, component, reduxStore) => { const mapStateToProps = function(state, ownProps) { const propsForContainerComponent = Object.assign({}, ownProps, getSystem()) - const ori = component.prototype.mapStateToProps || (state => state.toJS()) + const ori = component.prototype.mapStateToProps || (state => { return {state} }) return ori(state, propsForContainerComponent) }