mirror of
https://github.com/zadam/trilium.git
synced 2025-11-03 03:46:37 +01:00
added isBeingDeleted to be able to recognize that note is being deleted while still leaving it accessible
This commit is contained in:
@@ -187,9 +187,7 @@ 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];
|
||||
this.becca.notes[note.noteId].isBeingDeleted = true;
|
||||
|
||||
for (const attribute of note.getOwnedAttributes()) {
|
||||
attribute.markAsDeleted(deleteId);
|
||||
|
||||
Reference in New Issue
Block a user