From 1dc8929a67870b04b1e357ae8fda60254f49ab68 Mon Sep 17 00:00:00 2001 From: Dorian Goepp <dorian.goepp@gmail.com> Date: Tue, 7 May 2019 14:40:52 +0200 Subject: [PATCH] A little more failsafe for modeHandler --- src/utils/modeHandler.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/modeHandler.js b/src/utils/modeHandler.js index 9507bba..53d5a4f 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; -- GitLab