mirror of
https://github.com/zadam/trilium.git
synced 2025-10-29 02:07:31 +08:00
fix(export/zip): missing note meta for empty file (closes #6146)
This commit is contained in:
parent
294a2e6fdb
commit
4f46d81e1b
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Reference in a new issue