fix: update selected notes count when deleting multiple notes permanently (#808)

This commit is contained in:
Vardan Hakobyan
2022-01-10 18:30:38 +04:00
committed by GitHub
parent 4c8d59336b
commit f2d013b5e1

View File

@@ -325,6 +325,7 @@ export class NotesState {
if (permanently) {
for (const note of Object.values(this.selectedNotes)) {
await this.application.deleteItem(note);
delete this.selectedNotes[note.uuid];
}
} else {
await this.changeSelectedNotes((mutator) => {