Explorar el Código

Fix Dashboard

main
cyril.tsui hace 1 mes
padre
commit
13ab6e1f66
Se han modificado 1 ficheros con 7 adiciones y 0 borrados
  1. +7
    -0
      src/components/ProjectCashFlow/ProjectCashFlow.tsx

+ 7
- 0
src/components/ProjectCashFlow/ProjectCashFlow.tsx Ver fichero

@@ -100,7 +100,14 @@ const ProjectCashFlow: React.FC = () => {
const cashFlowProject = await fetchProjectsCashFlow();
setProjectData(cashFlowProject)
setFilteredResult(cashFlowProject)
if (isInitializing && projectId) {
setProjectInfo(cashFlowProject.filter((result:any)=> {
// console.log("Checking ID:", result.id, projectId, String(projectId) === String(result.id));
return String(projectId) === String(result.id)
}))
}
}

const fetchChartData = async () => {
const cashFlowMonthlyChartData = await fetchProjectsCashFlowMonthlyChart(selectedProjectIdList,cashFlowYear);
console.log(cashFlowMonthlyChartData)


Cargando…
Cancelar
Guardar