gantt-task-react-powern 0.4.26 → 0.4.27

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.
package/dist/index.js CHANGED
@@ -2797,7 +2797,7 @@ var Gantt = function Gantt(_ref) {
2797
2797
  var primaryDuration = 0;
2798
2798
 
2799
2799
  for (var _i5 = 0; _i5 < sortedTaskList.length; _i5++) {
2800
- var newDuration = taskMap[sortedTaskList[_i5]].end - leafTasks[_i5].start.getTime();
2800
+ var newDuration = taskMap[sortedTaskList[_i5]].end - taskMap[sortedTaskList[_i5]].task.start.getTime();
2801
2801
 
2802
2802
  if (primaryDuration < newDuration) {
2803
2803
  primaryLeaf = sortedTaskList[_i5];
@@ -2819,7 +2819,7 @@ var Gantt = function Gantt(_ref) {
2819
2819
  for (var _i6 = 0; _i6 < sortedTaskList.length; _i6++) {
2820
2820
  if (taskMap[sortedTaskList[_i6]].excluded) continue;
2821
2821
 
2822
- var _newDuration = taskMap[sortedTaskList[_i6]].end - leafTasks[_i6].start.getTime();
2822
+ var _newDuration = taskMap[sortedTaskList[_i6]].end - taskMap[sortedTaskList[_i6]].task.start.getTime();
2823
2823
 
2824
2824
  if (secondaryDuration < _newDuration) {
2825
2825
  secondaryLeaf = sortedTaskList[_i6];