fix: prevent undefined access
This commit is contained in:
@@ -379,7 +379,7 @@ class NotesViewCtrl extends PureViewCtrl<{}, NotesState> {
|
||||
}
|
||||
|
||||
async handleEditorChange() {
|
||||
const activeNote = this.appState.getActiveEditor().note;
|
||||
const activeNote = this.appState.getActiveEditor()?.note;
|
||||
if (activeNote && activeNote.conflictOf) {
|
||||
this.application!.changeAndSaveItem(activeNote.uuid, (mutator) => {
|
||||
mutator.conflictOf = undefined;
|
||||
|
||||
Reference in New Issue
Block a user