mirror of
https://github.com/zadam/trilium.git
synced 2025-10-20 15:19:01 +02:00
feat(export/zip): handle empty title for archive
This commit is contained in:
parent
5270cf6284
commit
86f6d9b14a
@ -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));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user