monkey-style-guide 2.0.91 → 2.0.92

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.
@@ -2329,13 +2329,17 @@
2329
2329
  return this._dateForm.value;
2330
2330
  },
2331
2331
  set: function (value) {
2332
- if (Object.prototype.hasOwnProperty.call(value, 'startDate') &&
2332
+ if (value &&
2333
+ Object.prototype.hasOwnProperty.call(value, 'startDate') &&
2333
2334
  Object.prototype.hasOwnProperty.call(value, 'endDate')) {
2334
2335
  this._dateForm.setValue(value);
2335
2336
  this.cdr.detectChanges();
2336
2337
  this.onModelChange(this._dateForm.value);
2337
2338
  this.onModelTouched(this._dateForm.value);
2338
2339
  }
2340
+ else {
2341
+ this.clearDates();
2342
+ }
2339
2343
  },
2340
2344
  enumerable: false,
2341
2345
  configurable: true
@@ -2397,6 +2401,9 @@
2397
2401
  endDate = startDate;
2398
2402
  startDate = dayFormatted;
2399
2403
  }
2404
+ else {
2405
+ endDate = dayFormatted;
2406
+ }
2400
2407
  }
2401
2408
  else
2402
2409
  startDate = dayFormatted;