From b906efb23b7492ec0139cf11d4ebafc39ed04fd4 Mon Sep 17 00:00:00 2001 From: zadam Date: Sun, 25 Dec 2022 14:10:12 +0100 Subject: [PATCH] fix ZIP import without metadata --- src/services/import/zip.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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,