defensive copies of owned attrs

This commit is contained in:
zadam
2023-07-17 22:56:36 +02:00
parent bc8f531b33
commit 83049c95c3
3 changed files with 2 additions and 6 deletions

View File

@@ -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);
}