fix: update selected notes count when deleting multiple notes permanently (#808)
This commit is contained in:
@@ -325,6 +325,7 @@ export class NotesState {
|
|||||||
if (permanently) {
|
if (permanently) {
|
||||||
for (const note of Object.values(this.selectedNotes)) {
|
for (const note of Object.values(this.selectedNotes)) {
|
||||||
await this.application.deleteItem(note);
|
await this.application.deleteItem(note);
|
||||||
|
delete this.selectedNotes[note.uuid];
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
await this.changeSelectedNotes((mutator) => {
|
await this.changeSelectedNotes((mutator) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user