gantt-task-react-powern 0.4.86 → 0.4.87

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1383,7 +1383,15 @@ var drawPathAndTriangle = function drawPathAndTriangle(taskFrom, taskTo, rowHeig
1383
1383
  var verticalOffset = indexCompare * (rowHeight / 2);
1384
1384
 
1385
1385
  var minX = function minX(t) {
1386
- return Math.min(t.x1 || 0, t.actualx1 || 0);
1386
+ if (t.x1 && t.actualx1) {
1387
+ return Math.min(t.x1, t.actualx1);
1388
+ } else if (t.x1) {
1389
+ return t.x1;
1390
+ } else if (t.actualx1) {
1391
+ return t.actualx1;
1392
+ } else {
1393
+ return 0;
1394
+ }
1387
1395
  };
1388
1396
 
1389
1397
  var maxX = function maxX(t) {
@@ -1878,7 +1886,10 @@ function getChildren(taskList, task) {
1878
1886
 
1879
1887
  if (task.type !== "project") {
1880
1888
  tasks = taskList.filter(function (t) {
1881
- return t.dependencies && t.dependencies.indexOf(task.id) !== -1;
1889
+ return t.dependencies && t.dependencies.map(function (_ref) {
1890
+ var id = _ref.id;
1891
+ return id;
1892
+ }).indexOf(task.id) !== -1;
1882
1893
  });
1883
1894
  } else {
1884
1895
  tasks = taskList.filter(function (t) {
@@ -2927,8 +2938,6 @@ var Gantt = function Gantt(_ref) {
2927
2938
  primaryPath = _getCriticalPaths[0],
2928
2939
  secondaryPath = _getCriticalPaths[1];
2929
2940
 
2930
- console.debug(primaryPath, secondaryPath);
2931
-
2932
2941
  if (leafTasks.length > 0 && primaryPath.length === 0 && secondaryPath.length === 0) {
2933
2942
  setHasCircularDeps(true);
2934
2943
  } else {