diff --git a/src/core/components/model-wrapper.jsx b/src/core/components/model-wrapper.jsx index cec55295..24d90209 100644 --- a/src/core/components/model-wrapper.jsx +++ b/src/core/components/model-wrapper.jsx @@ -18,15 +18,24 @@ export default class ModelWrapper extends Component { } onToggle = (name,isShown) => { + // If this prop is present, we'll have deepLinking for it + if(this.props.layoutActions) { this.props.layoutActions.show(["models", name],isShown) + } } render(){ let { getComponent, getConfigs } = this.props const Model = getComponent("Model") - const expanded = this.props.layoutSelectors.isShown(["models",this.props.name]) + + let expanded + if(this.props.layoutSelectors) { + // If this is prop is present, we'll have deepLinking for it + expanded = this.props.layoutSelectors.isShown(["models",this.props.name]) + } + return