@gisce/react-ooui 1.0.26 → 1.0.27

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.
@@ -18800,9 +18800,9 @@ const SearchTree$1 = forwardRef(SearchTree), SearchModal = (e) => {
18800
18800
  getContext: k,
18801
18801
  setOriginalValue: $,
18802
18802
  elementHasLostFocus: B
18803
- } = F || {}, P = useRef([]), [D, j] = useState([]), U = t && t[0], L = t && t[1] || "";
18803
+ } = F || {}, P = useRef([]), [D, j] = useState([]), U = t && t[0] || void 0, L = t && t[1] || "";
18804
18804
  useEffect(() => {
18805
- !Array.isArray(t) && !isNaN(t) && K(t);
18805
+ !Array.isArray(t) && t && K(t);
18806
18806
  }, [t]), useEffect(() => {
18807
18807
  U && L.length === 0 ? K(U) : U && L.length > 0 ? w(L) : !U && !L && w(O.current || "");
18808
18808
  }, [t]);