fix(export/zip): missing note meta for empty file (closes #6146)

This commit is contained in:
Elian Doran 2025-07-02 21:59:58 +03:00
parent 294a2e6fdb
commit 4f46d81e1b
No known key found for this signature in database

View file

@ -366,7 +366,7 @@ ${markdownContent}`;
function saveNote(noteMeta: NoteMeta, filePathPrefix: string) {
log.info(`Exporting note '${noteMeta.noteId}'`);
if (!noteMeta.noteId || !noteMeta.title) {
if (!noteMeta.noteId || noteMeta.title === undefined) {
throw new Error("Missing note meta.");
}