diff --git a/src/utils/modeHandler.js b/src/utils/modeHandler.js index 9507bba81ac9a926026162c3be49abf01d05b6e2..53d5a4fd12bfd89da183c049e89b856b49e274fe 100644 --- a/src/utils/modeHandler.js +++ b/src/utils/modeHandler.js @@ -6,7 +6,7 @@ export class Modal extends Component { constructor(props) { super(props); - this.modes = this.props.component.modes; + this.modes = ('modes' in this.props.component) ? this.props.component.modes : {}; this.configGetter = this.props.node.getConfig.bind(this.props.node); this.configSetter = this.props.updateConfig;