mirror of
https://github.com/zadam/trilium.git
synced 2025-06-06 18:08:33 +02:00
imported notes can reference root
This commit is contained in:
parent
3db2f6784d
commit
7691a59977
@ -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();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user