Merge pull request #365 from standardnotes/fix-default-editor-bug

Fix unable to 'undefault' editor
This commit is contained in:
Mo Bitar
2020-02-13 13:32:42 -06:00
committed by GitHub

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);