From 4cd69c8f9e147bf0922760e77d3e7908a5cf5968 Mon Sep 17 00:00:00 2001 From: Wahyu Ramadhan Date: Tue, 6 Jun 2023 08:41:22 +0700 Subject: [PATCH] Fix update parent --- edit-mode/function/restActivityLink.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/edit-mode/function/restActivityLink.js b/edit-mode/function/restActivityLink.js index d0da21a..25d60cb 100644 --- a/edit-mode/function/restActivityLink.js +++ b/edit-mode/function/restActivityLink.js @@ -130,12 +130,11 @@ var dp = gantt.createDataProcessor(function(entity, action, data, id) { let responseText = JSON.parse(response.responseText) let resData = responseText let updateBobot = resData.update_bobot || false + if(parent && parent > 0){ + updateActivity(parent); + } if(updateBobot){ refresData(id); - }else{ - if(parent && parent > 0){ - updateActivity(parent); - } } } });