@gisce/react-ooui 1.0.18 → 1.0.20

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.
@@ -18834,9 +18834,9 @@ const SearchTree$1 = forwardRef(SearchTree), SearchModal = (e) => {
18834
18834
  getContext: k,
18835
18835
  setOriginalValue: $,
18836
18836
  elementHasLostFocus: B
18837
- } = F || {}, P = useRef([]), [M, U] = useState([]), j = t && t[0], L = t && t[1] || "";
18837
+ } = F || {}, P = useRef([]), [M, U] = useState([]), j = t && t[0] || void 0, L = t && t[1] || "";
18838
18838
  useEffect(() => {
18839
- !Array.isArray(t) && !isNaN(t) && Y(t);
18839
+ !Array.isArray(t) && t && Y(t);
18840
18840
  }, [t]), useEffect(() => {
18841
18841
  j && L.length === 0 ? Y(j) : j && L.length > 0 ? w(L) : !j && !L && w(O.current || "");
18842
18842
  }, [t]);