fix deleting note from task manager, closes #3239

This commit is contained in:
zadam
2022-10-26 19:14:49 +02:00
parent 44b68326a0
commit 7d732eb73b
2 changed files with 4 additions and 5 deletions

View File

@@ -170,6 +170,10 @@ class Branch extends AbstractEntity {
log.info("Deleting note " + note.noteId);
// marking note as deleted as a signal to event handlers that the note is being deleted
// (isDeleted is being checked against becca)
delete this.becca.notes[note.noteId];
for (const attribute of note.getOwnedAttributes()) {
attribute.markAsDeleted(deleteId);
}