fix(import): no longer preserve named note IDs

This commit is contained in:
Elian Doran
2026-04-04 21:27:37 +03:00
parent b371675494
commit ed3b86cd49

View File

@@ -51,8 +51,7 @@ async function importZip(taskContext: TaskContext<"importNotes">, fileBuffer: Bu
return "empty_note_id";
}
if (origNoteId === "root" || origNoteId.startsWith("_") || opts?.preserveIds) {
// these "named" noteIds don't differ between Trilium instances
if (origNoteId === "root" || opts?.preserveIds) {
return origNoteId;
}