fix(print): crash when printing presentation

This commit is contained in:
Elian Doran 2026-01-19 14:55:33 +02:00
parent 84cf4ef4a3
commit 5d1a63bce0
No known key found for this signature in database

View File

@ -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",