fix: editor not opening for single selected note after unselecting a note from batch

This commit is contained in:
Antonella Sgarlatta
2021-05-17 16:46:21 -03:00
parent c6e4c2fcf5
commit a2b6c3785a

View File

@@ -140,10 +140,13 @@ export class NotesState {
this.selectedNotes = {
[note.uuid]: note,
};
await this.openEditor(note.uuid);
this.lastSelectedNote = note;
}
}
if (this.selectedNotesCount === 1) {
await this.openEditor(Object.keys(this.selectedNotes)[0]);
}
}
}