gantt-task-react-powern 0.6.35 → 0.6.36

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.
@@ -3912,6 +3912,8 @@ var Gantt = function Gantt(_ref) {
3912
3912
  var _ref2;
3913
3913
 
3914
3914
  var tasks = _ref.tasks,
3915
+ primaryPath = _ref.primaryPath,
3916
+ secondaryPath = _ref.secondaryPath,
3915
3917
  _ref$leafTasks = _ref.leafTasks,
3916
3918
  leafTasks = _ref$leafTasks === void 0 ? [] : _ref$leafTasks,
3917
3919
  _ref$scheduleType = _ref.scheduleType,
@@ -4272,10 +4274,6 @@ var Gantt = function Gantt(_ref) {
4272
4274
  });
4273
4275
  }
4274
4276
 
4275
- var _getCriticalPaths = getCriticalPaths(leafTasks),
4276
- primaryPath = _getCriticalPaths[0],
4277
- secondaryPath = _getCriticalPaths[1];
4278
-
4279
4277
  uncolorAll(tasks);
4280
4278
 
4281
4279
  if (scheduleType !== "lookAhead") {
@@ -4922,6 +4920,8 @@ function getCriticalPaths(leafTasks) {
4922
4920
  secondaryLeaf = _nextPath.task;
4923
4921
  }
4924
4922
 
4923
+ console.debug("Primary", primaryPath);
4924
+ console.debug("Secondary", secondaryPath);
4925
4925
  return [primaryPath, secondaryPath];
4926
4926
  }
4927
4927