@cloudbase/weda-ui 3.11.10 → 3.11.11

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.
@@ -61,7 +61,7 @@ export const useChooseList = ({ dataSourceAPI, queryParams, childDbName, primary
61
61
  db: childDbName,
62
62
  }),
63
63
  ];
64
- if (value === null || value === void 0 ? void 0 : value.length) {
64
+ if (value) {
65
65
  if (isMultiple) {
66
66
  value.forEach((i) => {
67
67
  if (i) {
@@ -94,7 +94,7 @@ export const useChooseList = ({ dataSourceAPI, queryParams, childDbName, primary
94
94
  setTotal(result === null || result === void 0 ? void 0 : result.total);
95
95
  setLoading(false);
96
96
  // eslint-disable-next-line react-hooks/exhaustive-deps
97
- }, [childDbName, primaryColumn, queryParams]);
97
+ }, [childDbName, primaryColumn, queryParams, value]);
98
98
  useEffect(() => {
99
99
  if (childDbName) {
100
100
  fetchData();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cloudbase/weda-ui",
3
- "version": "3.11.10",
3
+ "version": "3.11.11",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index",
6
6
  "miniprogram": "mpdist",