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