fix: new note button not working when multiple notes selected

This commit is contained in:
Antonella Sgarlatta
2021-05-24 11:05:15 -03:00
parent 633add73c9
commit 6a7e09cd26

View File

@@ -400,6 +400,7 @@ class NotesViewCtrl extends PureViewCtrl<unknown, NotesCtrlState> {
}
async createNewNote() {
this.appState.notes.unselectNotes();
let title = `Note ${this.state.notes.length + 1}`;
if (this.isFiltering()) {
title = this.state.noteFilter.text;