indicator-ui 0.0.205 → 0.0.206

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 CHANGED
@@ -8465,7 +8465,14 @@ __webpack_require__.r(__webpack_exports__);
8465
8465
 
8466
8466
 
8467
8467
  const getDate = (date) => {
8468
- return (Array.isArray(date) ? date[0] || date[1] : date) ?? new Date().toISOString();
8468
+ let res;
8469
+ if (Array.isArray(date)) {
8470
+ res = date[0] || date[1];
8471
+ }
8472
+ else {
8473
+ res = date;
8474
+ }
8475
+ return res || new Date().toISOString();
8469
8476
  };
8470
8477
  function DatePicker({ date, onChangeDate, getInfo, isMark, isHoliday, onYearButtonClick, onMonthButtonClick, type = 'date', }) {
8471
8478
  const [target, setTarget] = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(getDate(date));