|
|
|
@ -307,8 +307,10 @@ const DashboardBOD = () => {
|
|
|
|
|
let actualProgress = 0; |
|
|
|
|
let selisihProgress = 0; |
|
|
|
|
|
|
|
|
|
// planningProgress = item.scurve[0].data.percentagePlan[item.scurve[0].data.percentagePlan.length - 1]
|
|
|
|
|
// actualProgress = item.scurve[0].data.percentageReal[item.scurve[0].data.percentageReal.length - 1]
|
|
|
|
|
if(item.scurve && item.scurve[0]) { |
|
|
|
|
planningProgress = item.scurve[0].data.percentagePlan[item.scurve[0].data.percentagePlan.length - 1] |
|
|
|
|
actualProgress = item.scurve[0].data.percentageReal[item.scurve[0].data.percentageReal.length - 1] |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
selisihProgress = planningProgress - actualProgress |
|
|
|
|
|
|
|
|
|