From cc0418f54745f4b15a0b31a7f673f9b4f87069ea Mon Sep 17 00:00:00 2001 From: "MSI\\2Fi" Date: Fri, 17 May 2024 15:21:27 +0800 Subject: [PATCH] EX01 Financial Report, --- .../FinancialStatusReportGen/FinancialStatusReportGen.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/Report/FinancialStatusReportGen/FinancialStatusReportGen.tsx b/src/components/Report/FinancialStatusReportGen/FinancialStatusReportGen.tsx index 243b8dd..3f003ce 100644 --- a/src/components/Report/FinancialStatusReportGen/FinancialStatusReportGen.tsx +++ b/src/components/Report/FinancialStatusReportGen/FinancialStatusReportGen.tsx @@ -43,7 +43,7 @@ const GenFinancialStatusReport: React.FC = ({ projects, teamCombo }) => { if (query.code.length > 0 && query.code.toLocaleLowerCase() !== "all") { const projectIndex = teamCombo.findIndex((project) => `${project.code} - ${project.name}` === query.code) console.log(teamCombo[projectIndex].id) - const response = await fetchProjectsFinancialStatusReport({ teamLeadId: projects[projectIndex].id }) + const response = await fetchProjectsFinancialStatusReport({ teamLeadId: teamCombo[projectIndex].id }) if (response) { downloadFile(new Uint8Array(response.blobValue), response.filename!!) } @@ -55,6 +55,7 @@ const GenFinancialStatusReport: React.FC = ({ projects, teamCombo }) => { } } }} + formType="download" /> {/* */}