Fix unable to 'undefault' editor
This commit is contained in:
@@ -46,7 +46,7 @@ class EditorMenuCtrl extends PureCtrl {
|
|||||||
}
|
}
|
||||||
|
|
||||||
toggleDefaultForEditor(editor) {
|
toggleDefaultForEditor(editor) {
|
||||||
if(this.defaultEditor === editor) {
|
if(this.state.defaultEditor === editor) {
|
||||||
this.removeEditorDefault(editor);
|
this.removeEditorDefault(editor);
|
||||||
} else {
|
} else {
|
||||||
this.makeEditorDefault(editor);
|
this.makeEditorDefault(editor);
|
||||||
|
|||||||
Reference in New Issue
Block a user