diff --git a/packages/frontend/src/routes/pdf.$reportId.tsx b/packages/frontend/src/routes/pdf.$reportId.tsx index 2d29fed1..80d3f388 100644 --- a/packages/frontend/src/routes/pdf.$reportId.tsx +++ b/packages/frontend/src/routes/pdf.$reportId.tsx @@ -71,6 +71,8 @@ export const PDF = () => { createdAt: reportQuery.results!.createdAt.toISOString(), }); + console.log({ snapshotReport, report: reportQuery.results, diff }); + if (Object.keys(diff).length) return null; return snapshot.html!; @@ -218,20 +220,6 @@ export const PDF = () => { ); }; -// const getStoredHtmlString = (report: Report) => { -// const reportSnapshotRaw = localStorage.getItem("report-" + report.id); -// if (!reportSnapshotRaw) return null; - -// const reportSnapshot = JSON.parse(reportSnapshotRaw); -// const diff = getDiff(reportSnapshot, { ...report, createdAt: report.createdAt.toISOString() }); - -// if (Object.keys(diff).length) return null; - -// const htmlString = localStorage.getItem("report-html-" + report.id); - -// return htmlString; -// }; - const SendForm = ({ children, generatePdf,