From fd40096299eb4a424e9feb588fc0015ace5783e8 Mon Sep 17 00:00:00 2001 From: Wahyu Ramadhan Date: Mon, 26 Jun 2023 10:27:37 +0700 Subject: [PATCH 1/2] Fix health by schedule --- src/views/Dashboard/DashboardBOD.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/views/Dashboard/DashboardBOD.js b/src/views/Dashboard/DashboardBOD.js index 26530b4..9f8c8f7 100644 --- a/src/views/Dashboard/DashboardBOD.js +++ b/src/views/Dashboard/DashboardBOD.js @@ -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 From b85b2eeda5edac9b79826006849cd23f9bd26012 Mon Sep 17 00:00:00 2001 From: Wahyu Ramadhan Date: Mon, 26 Jun 2023 11:22:55 +0700 Subject: [PATCH 2/2] Change danger into overrun --- src/views/SimproV2/CreatedProyek/DialogFormProyek.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/views/SimproV2/CreatedProyek/DialogFormProyek.js b/src/views/SimproV2/CreatedProyek/DialogFormProyek.js index 63b8e3f..5bab0e6 100644 --- a/src/views/SimproV2/CreatedProyek/DialogFormProyek.js +++ b/src/views/SimproV2/CreatedProyek/DialogFormProyek.js @@ -654,8 +654,8 @@ const DialogFormProyek = ({ -