Merge pull request #365 from standardnotes/fix-default-editor-bug
Fix unable to 'undefault' editor
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user