Skip to content

Commit

Permalink
worked on print button not working
Browse files Browse the repository at this point in the history
  • Loading branch information
OchiengPaul442 committed Nov 21, 2023
1 parent d09471f commit 97c8691
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion platform/src/common/components/Modal/PrintReportModal.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ const PrintReportModal = ({
tableRows.push(dataRow);
});

doc.autoTable({
autoTable(doc, {
columns: Object.keys(selectedColumns)
.filter((column) => selectedColumns[column])
.map((col) => ({
Expand Down
1 change: 1 addition & 0 deletions platform/src/pages/analytics/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,7 @@ const AuthenticatedHomePage = () => {
<PrintReportModal
title='Share report'
open={openPrintModal}
handlePrintPDF={printFile}
onClose={() => setOpenPrintModal(false)}
data={data}
shareModel={false}
Expand Down

0 comments on commit 97c8691

Please sign in to comment.