gantt-task-react-powern 0.4.51 → 0.4.52
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 +3 -3
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +3 -3
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -106,10 +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 _tasks$, _tasks$2;
|
|
109
|
+
var _tasks$, _tasks$2, _tasks$3, _tasks$4;
|
|
110
110
|
|
|
111
|
-
var newStartDate = tasks[0]
|
|
112
|
-
var newEndDate = tasks[0].end.getTime() !== 0 ? ((_tasks$
|
|
111
|
+
var newStartDate = ((_tasks$ = tasks[0]) === null || _tasks$ === void 0 ? void 0 : _tasks$.start.getTime()) !== 0 ? ((_tasks$2 = tasks[0]) === null || _tasks$2 === void 0 ? void 0 : _tasks$2.start) || new Date() : new Date();
|
|
112
|
+
var newEndDate = ((_tasks$3 = tasks[0]) === null || _tasks$3 === void 0 ? void 0 : _tasks$3.end.getTime()) !== 0 ? ((_tasks$4 = tasks[0]) === null || _tasks$4 === void 0 ? void 0 : _tasks$4.end) || new Date() : new Date();
|
|
113
113
|
|
|
114
114
|
for (var _iterator = _createForOfIteratorHelperLoose(tasks), _step; !(_step = _iterator()).done;) {
|
|
115
115
|
var task = _step.value;
|