Skip to content

Build your personal knowledge base with Trilium Notes

copy child: attrs also when defined on a template/parent note

zadamf5f48ef6c4b5
diff --git a/src/services/notes.js b/src/services/notes.js
index 87ddaff66c..745a875423 100644
--- a/src/services/notes.js
+++ b/src/services/notes.js
@@ -61,7 +61,7 @@ function deriveMime(type, mime) {
}
function copyChildAttributes(parentNote, childNote) {
- for (const attr of parentNote.getOwnedAttributes()) {
+ for (const attr of parentNote.getAttributes()) {
if (attr.name.startsWith("child:")) {
new Attribute({
noteId: childNote.noteId,