mirror of
https://github.com/zadam/trilium.git
synced 2025-01-16 20:21:43 +08:00
correct placement of imported root note (at the end)
This commit is contained in:
parent
f49f510459
commit
d905335935
1 changed files with 3 additions and 1 deletions
|
@ -355,7 +355,9 @@ async function importZip(taskContext, fileBuffer, importRootNote) {
|
|||
mime,
|
||||
prefix: noteMeta ? noteMeta.prefix : '',
|
||||
isExpanded: noteMeta ? noteMeta.isExpanded : false,
|
||||
notePosition: noteMeta ? noteMeta.notePosition : false,
|
||||
// root notePosition should be ignored since it relates to original document
|
||||
// now import root should be placed after existing notes into new parent
|
||||
notePosition: (noteMeta && firstNote) ? noteMeta.notePosition : undefined,
|
||||
isProtected: importRootNote.isProtected && protectedSessionService.isProtectedSessionAvailable(),
|
||||
}));
|
||||
|
||||
|
|
Loading…
Reference in a new issue