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.
@@ -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 newStartDate = tasks[0].start;
109
- var newEndDate = tasks[0].start;
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;