Commit 1dc8929a authored by Dorian Goepp's avatar Dorian Goepp

A little more failsafe for modeHandler

parent 71c0e569
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment