mirror of
https://github.com/zadam/trilium.git
synced 2024-09-22 16:46:09 +08: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 "";
|
return "";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// we allow references to root and they don't need translation
|
||||||
|
if (origNoteId === 'root') {
|
||||||
|
return origNoteId;
|
||||||
|
}
|
||||||
|
|
||||||
if (!ctx.noteIdMap[origNoteId]) {
|
if (!ctx.noteIdMap[origNoteId]) {
|
||||||
ctx.noteIdMap[origNoteId] = utils.newEntityId();
|
ctx.noteIdMap[origNoteId] = utils.newEntityId();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue