|
|
@@ -43,7 +43,7 @@ const GenFinancialStatusReport: React.FC<Props> = ({ 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<Props> = ({ projects, teamCombo }) => { |
|
|
|
} |
|
|
|
} |
|
|
|
}} |
|
|
|
formType="download" |
|
|
|
/> |
|
|
|
{/* <DownloadReportButton /> */} |
|
|
|
</> |
|
|
|