fix ZIP import without metadata

This commit is contained in:
zadam 2022-12-25 14:10:12 +01:00
parent f249d6cb26
commit b906efb23b

View file

@ -192,7 +192,7 @@ async function importZip(taskContext, fileBuffer, importRootNote) {
title: noteTitle,
content: '',
noteId: noteId,
type: resolveNoteType(noteMeta.type),
type: resolveNoteType(noteMeta?.type),
mime: noteMeta ? noteMeta.mime : 'text/html',
prefix: noteMeta ? noteMeta.prefix : '',
isExpanded: noteMeta ? noteMeta.isExpanded : false,