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" /> {/* */}