mirror of
https://github.com/zadam/trilium.git
synced 2025-11-11 15:55:52 +01:00
defensive copies of owned attrs
This commit is contained in:
@@ -191,7 +191,7 @@ class BBranch extends AbstractBeccaEntity {
|
||||
|
||||
this.becca.notes[note.noteId].isBeingDeleted = true;
|
||||
|
||||
for (const attribute of note.getOwnedAttributes()) {
|
||||
for (const attribute of note.getOwnedAttributes().slice()) {
|
||||
attribute.markAsDeleted(deleteId);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user