mirror of
https://github.com/zadam/trilium.git
synced 2026-01-23 15:04:25 +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) {
|
||||
if (printReport.type === "collection" && printReport.ignoredNoteIds.length > 0) {
|
||||
function handlePrintReport(printReport?: PrintReport) {
|
||||
if (printReport?.type === "collection" && printReport.ignoredNoteIds.length > 0) {
|
||||
toast.showPersistent({
|
||||
id: "print-report",
|
||||
icon: "bx bx-collection",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user