Browse Source

Check link type

pull/1/head
Wahyu Ramadhan 1 year ago
parent
commit
9a016c2509
  1. 4
      edit-mode/function/function.js

4
edit-mode/function/function.js

@ -717,7 +717,9 @@ function updateLinksLag(data) {
let predecessor = data.data.find(item => item.id == link.source);
if (predecessor) {
let lag = gantt.calculateDuration(new Date(predecessor.end_date), new Date(task.start_date));
link.lag = lag;
if (link.type == "0") {
link.lag = lag;
}
}
}
});

Loading…
Cancel
Save