indicator-ui 0.0.181 → 0.0.183

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
@@ -7988,7 +7988,7 @@ __webpack_require__.r(__webpack_exports__);
7988
7988
  /* harmony import */ var _CascadeBlock__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./CascadeBlock */ "./src/ui/CascadeSelector/ui/CascadeBlock.tsx");
7989
7989
 
7990
7990
 
7991
- function CascadeSelector({ value, options, onChange, multiple, defaultAllHidden }) {
7991
+ function CascadeSelector({ value, options, onChange, multiple = true, defaultAllHidden }) {
7992
7992
  const getValue = () => {
7993
7993
  if (Array.isArray(value)) {
7994
7994
  return [...value];
@@ -11897,7 +11897,7 @@ function MediaViewer({ media = [], mediaIndex, nearestElementsOnly = true, onClo
11897
11897
  return curIndex < media.length - 1 ? curIndex + 1 : undefined;
11898
11898
  };
11899
11899
  (0,react__WEBPACK_IMPORTED_MODULE_1__.useEffect)(() => {
11900
- const isValid = mediaIndex != null && mediaIndex >= 0 && mediaIndex < media.length ? mediaIndex : 0;
11900
+ const isValid = mediaIndex != null && mediaIndex >= 0 && mediaIndex < media.length;
11901
11901
  if (mediaIndex !== curMediaIndex && isValid) {
11902
11902
  setCurMediaIndex(mediaIndex);
11903
11903
  }