@gisce/react-ooui 2.0.0-rc.12 → 2.0.0-rc.13

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gisce/react-ooui",
3
- "version": "2.0.0-rc.12",
3
+ "version": "2.0.0-rc.13",
4
4
  "files": [
5
5
  "dist",
6
6
  "src",
@@ -166,11 +166,11 @@ function SearchTree(props: Props, ref: any) {
166
166
  return;
167
167
  }
168
168
 
169
- if (visible) {
169
+ if (visible && treeView) {
170
170
  searchNameGetDoneRef.current = false;
171
171
  fetchResults();
172
172
  }
173
- }, [page, offset, initialFetchDone, visible, nameSearch]);
173
+ }, [page, offset, initialFetchDone, visible, nameSearch, treeView]);
174
174
 
175
175
  const fetchData = async () => {
176
176
  setInitialFetchDone(false);