mirror of
https://github.com/zadam/trilium.git
synced 2026-02-27 17:13:38 +01:00
fix(print): crash when printing presentation
This commit is contained in:
parent
84cf4ef4a3
commit
5d1a63bce0
@ -363,8 +363,8 @@ function showToast(type: "printing" | "exporting_pdf", progress: number = 0) {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
function handlePrintReport(printReport: PrintReport) {
|
function handlePrintReport(printReport?: PrintReport) {
|
||||||
if (printReport.type === "collection" && printReport.ignoredNoteIds.length > 0) {
|
if (printReport?.type === "collection" && printReport.ignoredNoteIds.length > 0) {
|
||||||
toast.showPersistent({
|
toast.showPersistent({
|
||||||
id: "print-report",
|
id: "print-report",
|
||||||
icon: "bx bx-collection",
|
icon: "bx bx-collection",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user