Fix unable to 'undefault' editor

This commit is contained in:
Baptiste Grob
2020-02-12 18:54:31 +01:00
parent 982b366866
commit 7ee934e54c

View File

@@ -46,7 +46,7 @@ class EditorMenuCtrl extends PureCtrl {
}
toggleDefaultForEditor(editor) {
if(this.defaultEditor === editor) {
if(this.state.defaultEditor === editor) {
this.removeEditorDefault(editor);
} else {
this.makeEditorDefault(editor);