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.js
CHANGED
|
@@ -106,8 +106,10 @@ var startOfDate = function startOfDate(date, scale) {
|
|
|
106
106
|
return newDate;
|
|
107
107
|
};
|
|
108
108
|
var ganttDateRange = function ganttDateRange(tasks, viewMode, preStepsCount) {
|
|
109
|
-
var
|
|
110
|
-
|
|
109
|
+
var _tasks$, _tasks$2;
|
|
110
|
+
|
|
111
|
+
var newStartDate = ((_tasks$ = tasks[0]) === null || _tasks$ === void 0 ? void 0 : _tasks$.start) || new Date();
|
|
112
|
+
var newEndDate = ((_tasks$2 = tasks[0]) === null || _tasks$2 === void 0 ? void 0 : _tasks$2.start) || new Date();
|
|
111
113
|
|
|
112
114
|
for (var _iterator = _createForOfIteratorHelperLoose(tasks), _step; !(_step = _iterator()).done;) {
|
|
113
115
|
var task = _step.value;
|