indicator-ui 0.0.181 → 0.0.182

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
@@ -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
  }