mirror of
https://github.com/zadam/trilium.git
synced 2025-10-28 10:08:52 +01:00
fix(export/zip): missing note meta for empty file (closes #6146)
This commit is contained in:
parent
294a2e6fdb
commit
4f46d81e1b
@ -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.");
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user