|
|
@ -424,14 +424,7 @@ const DashboardProject = () => { |
|
|
|
result.data.data[0].data?.percentagePlan && |
|
|
|
result.data.data[0].data?.percentagePlan && |
|
|
|
result.data.data[0].data?.percentagePlan.length > 0 |
|
|
|
result.data.data[0].data?.percentagePlan.length > 0 |
|
|
|
) { |
|
|
|
) { |
|
|
|
if (SCURVE && SCURVE == "1") { |
|
|
|
|
|
|
|
planningProgress = |
|
|
|
|
|
|
|
result.data.data[0].data?.percentagePlan[ |
|
|
|
|
|
|
|
result.data.data[0].data?.percentagePlan.length - 1 |
|
|
|
|
|
|
|
]; |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
planningProgress = result.data.data[0].data?.percentagePlan[n]; |
|
|
|
planningProgress = result.data.data[0].data?.percentagePlan[n]; |
|
|
|
} |
|
|
|
|
|
|
|
setPlanningProgress(planningProgress); |
|
|
|
setPlanningProgress(planningProgress); |
|
|
|
} |
|
|
|
} |
|
|
|
if ( |
|
|
|
if ( |
|
|
|