fix: only create new placeholder if no editor is open

This commit is contained in:
Mo
2021-12-27 16:01:45 -06:00
parent c9e448c7b6
commit 3140b17c20

View File

@@ -111,7 +111,8 @@ export class NotesViewState {
if (
this.notes.length === 0 &&
this.appState.selectedTag?.isAllTag &&
this.noteFilterText === ''
this.noteFilterText === '' &&
!this.appState.notes.activeEditor
) {
this.createPlaceholderNote();
}