From 85a75fc1867bc737d5fce1af1b4c58d55acf28aa Mon Sep 17 00:00:00 2001 From: zadam Date: Tue, 27 Jun 2023 23:03:17 +0200 Subject: [PATCH] getOwnedAttributes() should not make a copy, consistent with similar methods --- src/becca/entities/bnote.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/becca/entities/bnote.js b/src/becca/entities/bnote.js index 09dd7e679..320182725 100644 --- a/src/becca/entities/bnote.js +++ b/src/becca/entities/bnote.js @@ -731,7 +731,7 @@ class BNote extends AbstractBeccaEntity { return this.ownedAttributes.filter(attr => attr.name === name); } else { - return this.ownedAttributes.slice(); + return this.ownedAttributes; } }