mirror of
https://github.com/zadam/trilium.git
synced 2025-11-05 04:45:47 +01:00
feat(export/zip): handle empty title for archive
This commit is contained in:
@@ -599,7 +599,7 @@ ${markdownContent}`;
|
|||||||
}
|
}
|
||||||
|
|
||||||
const note = branch.getNote();
|
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) {
|
if (setHeaders && "setHeader" in res) {
|
||||||
res.setHeader("Content-Disposition", getContentDisposition(zipFileName));
|
res.setHeader("Content-Disposition", getContentDisposition(zipFileName));
|
||||||
|
|||||||
Reference in New Issue
Block a user