Skip to content

Commit

Permalink
add logs
Browse files Browse the repository at this point in the history
  • Loading branch information
ledouxm committed Jul 10, 2024
1 parent 215087b commit f281d05
Showing 1 changed file with 2 additions and 14 deletions.
16 changes: 2 additions & 14 deletions packages/frontend/src/routes/pdf.$reportId.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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!;
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit f281d05

Please sign in to comment.