Skip to content

Build your personal knowledge base with Trilium Notes

imported notes can reference root

azivner7691a5997743
diff --git a/src/services/import/tar.js b/src/services/import/tar.js
index 26045c77b8..6f999281b3 100644
--- a/src/services/import/tar.js
+++ b/src/services/import/tar.js
@@ -31,6 +31,11 @@ async function importTar(fileBuffer, parentNote) {
return "";
}
+ // we allow references to root and they don't need translation
+ if (origNoteId === 'root') {
+ return origNoteId;
+ }
+
if (!ctx.noteIdMap[origNoteId]) {
ctx.noteIdMap[origNoteId] = utils.newEntityId();
}