feat(export/zip): handle empty title for archive

This commit is contained in:
Elian Doran 2025-07-02 22:28:19 +03:00
parent 5270cf6284
commit 86f6d9b14a
No known key found for this signature in database

View File

@ -599,7 +599,7 @@ ${markdownContent}`;
}
const note = branch.getNote();
const zipFileName = `${branch.prefix ? `${branch.prefix} - ` : ""}${note.getTitleOrProtected()}.zip`;
const zipFileName = `${branch.prefix ? `${branch.prefix} - ` : ""}${note.getTitleOrProtected() || "note"}.zip`;
if (setHeaders && "setHeader" in res) {
res.setHeader("Content-Disposition", getContentDisposition(zipFileName));