diff --git a/src/services/import/zip.js b/src/services/import/zip.js index 1add38a08..c8913b67c 100644 --- a/src/services/import/zip.js +++ b/src/services/import/zip.js @@ -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,