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); - } } } });