@seafile/seafile-calendar 0.0.31-Apph0.44 → 0.0.31-Apph0.46

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.
@@ -7416,13 +7416,12 @@ var _initialiseProps = function _initialiseProps() {
7416
7416
  onChange = _props.onChange,
7417
7417
  selectedValue = _props.selectedValue,
7418
7418
  shouldDisplayCurrent = _props.shouldDisplayCurrent;
7419
-
7420
7419
  // 没有内容,合法并直接退出
7421
7420
 
7422
- if (!str || !calendarStr) {
7421
+ if (!str) {
7423
7422
  if (shouldDisplayCurrent) {
7424
7423
  _this2.setState({ str: '' });
7425
- _this2.onChange(__WEBPACK_IMPORTED_MODULE_8_dayjs___default()());
7424
+ onChange(__WEBPACK_IMPORTED_MODULE_8_dayjs___default()());
7426
7425
  return;
7427
7426
  }
7428
7427
  _this2.onClear();