fix importing notePosition of directories

This commit is contained in:
zadam
2021-10-08 22:31:35 +02:00
parent 20696aa0ab
commit ba676587df
3 changed files with 4 additions and 1 deletions

View File

@@ -186,6 +186,7 @@ async function importZip(taskContext, fileBuffer, importRootNote) {
mime: noteMeta ? noteMeta.mime : 'text/html',
prefix: noteMeta ? noteMeta.prefix : '',
isExpanded: noteMeta ? noteMeta.isExpanded : false,
notePosition: (noteMeta && firstNote) ? noteMeta.notePosition : undefined,
isProtected: importRootNote.isProtected && protectedSessionService.isProtectedSessionAvailable(),
}));