diff --git a/package.json b/package.json index c220735b8a..173527afe1 100644 --- a/package.json +++ b/package.json @@ -42,7 +42,7 @@ "react-redux": "^9.2.0", "react-router": "^7.1.1", "react-snowfall": "^2.2.0", - "react-to-print": "^2.15.1", + "react-to-print": "^3.0.4", "react-toastify": "^11.0.2", "react-tooltip": "^5.28.0", "sockette": "^2.0.6", diff --git a/src/components/SettingsDialog/ExportBoard/PrintView/PrintView.tsx b/src/components/SettingsDialog/ExportBoard/PrintView/PrintView.tsx index 79de470c31..9ac084e918 100644 --- a/src/components/SettingsDialog/ExportBoard/PrintView/PrintView.tsx +++ b/src/components/SettingsDialog/ExportBoard/PrintView/PrintView.tsx @@ -48,7 +48,7 @@ export const PrintView = ({boardId, boardName}: PrintViewProps) => { useEffect(() => { if (boardData) { - handlePrint(null, () => printRef.current); + handlePrint(() => printRef.current); } // eslint-disable-next-line react-hooks/exhaustive-deps }, [boardData]); @@ -88,7 +88,7 @@ export const PrintView = ({boardId, boardName}: PrintViewProps) => { return (