gantt-task-react-powern 0.4.49 → 0.4.50
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 +4 -2
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +4 -2
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -105,8 +105,10 @@ var startOfDate = function startOfDate(date, scale) {
|
|
|
105
105
|
return newDate;
|
|
106
106
|
};
|
|
107
107
|
var ganttDateRange = function ganttDateRange(tasks, viewMode, preStepsCount) {
|
|
108
|
-
var
|
|
109
|
-
|
|
108
|
+
var _tasks$, _tasks$2;
|
|
109
|
+
|
|
110
|
+
var newStartDate = ((_tasks$ = tasks[0]) === null || _tasks$ === void 0 ? void 0 : _tasks$.start) || new Date();
|
|
111
|
+
var newEndDate = ((_tasks$2 = tasks[0]) === null || _tasks$2 === void 0 ? void 0 : _tasks$2.start) || new Date();
|
|
110
112
|
|
|
111
113
|
for (var _iterator = _createForOfIteratorHelperLoose(tasks), _step; !(_step = _iterator()).done;) {
|
|
112
114
|
var task = _step.value;
|