From dfa972b7537e14763db91d394b833e00e034fdcf Mon Sep 17 00:00:00 2001 From: Wahyu Ramadhan Date: Tue, 23 May 2023 16:13:44 +0700 Subject: [PATCH] Fix gantt setting --- edit-mode/function/ganttSettings.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/edit-mode/function/ganttSettings.js b/edit-mode/function/ganttSettings.js index 6b5de2b..98fade3 100644 --- a/edit-mode/function/ganttSettings.js +++ b/edit-mode/function/ganttSettings.js @@ -106,8 +106,8 @@ $(document).ready(function() { let payload = { "config_dayoff": dayoff.join(','), - "cost_to_complete": costToComplete, - "committed_cost": committedCost + "cost_to_complete": costToComplete ? costToComplete : 0, + "committed_cost": committedCost ? committedCost : 0 } const result = await axiosInstance