Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
fixed import with attributes
azivnerfec157444787
diff --git a/src/routes/api/import.js b/src/routes/api/import.jsindex 327bd61738..2e47b1956a 100644--- a/src/routes/api/import.js+++ b/src/routes/api/import.js@@ -188,7 +188,14 @@ async function importNotes(files, parentNoteId, noteIdMap) {noteIdMap[file.meta.noteId] = note.noteId;for (const attribute of file.meta.attributes) {- await attributeService.createAttribute(attribute);+ await attributeService.createAttribute({+ noteId: note.noteId,+ type: attribute.type,+ name: attribute.name,+ value: attribute.value,+ isInheritable: attribute.isInheritable,+ position: attribute.position+ });}if (file.children.length > 0) {