mirror of
https://github.com/zadam/trilium.git
synced 2025-11-08 22:35:50 +01:00
fix(export/zip): missing note meta for empty file (closes #6146)
This commit is contained in:
@@ -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.");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user