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.modern.js
CHANGED
|
@@ -105,10 +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 _tasks$, _tasks$2;
|
|
108
|
+
var _tasks$, _tasks$2, _tasks$3, _tasks$4;
|
|
109
109
|
|
|
110
|
-
var newStartDate = tasks[0]
|
|
111
|
-
var newEndDate = tasks[0].end.getTime() !== 0 ? ((_tasks$
|
|
110
|
+
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();
|
|
111
|
+
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();
|
|
112
112
|
|
|
113
113
|
for (var _iterator = _createForOfIteratorHelperLoose(tasks), _step; !(_step = _iterator()).done;) {
|
|
114
114
|
var task = _step.value;
|