Skip to content

Build your personal knowledge base with Trilium Notes

getOwnedAttributes() should not make a copy, consistent with similar methods

zadam85a75fc1867b
diff --git a/src/becca/entities/bnote.js b/src/becca/entities/bnote.js
index 09dd7e6792..320182725f 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;
}
}