@compill/admin 1.0.46 → 1.0.47
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/index.cjs.js +2 -2
- package/index.esm.js +2 -2
- package/package.json +1 -1
package/index.cjs.js
CHANGED
@@ -2643,8 +2643,8 @@ function useQueries(queries) {
|
|
2643
2643
|
isFetching,
|
2644
2644
|
isError
|
2645
2645
|
} = api.useApiQueries(queries.map(q => {
|
2646
|
-
if (!q.queryField
|
2647
|
-
const _api = q.api;
|
2646
|
+
if (!q.queryField) {
|
2647
|
+
const _api = react.runIfFn(q.api);
|
2648
2648
|
return {
|
2649
2649
|
queryKey: _api.queryKey,
|
2650
2650
|
queryFn: q.fn == "get" ? _api.get : _api.getAll,
|
package/index.esm.js
CHANGED
@@ -2634,8 +2634,8 @@ function useQueries(queries) {
|
|
2634
2634
|
isFetching,
|
2635
2635
|
isError
|
2636
2636
|
} = useApiQueries(queries.map(q => {
|
2637
|
-
if (!q.queryField
|
2638
|
-
const _api = q.api;
|
2637
|
+
if (!q.queryField) {
|
2638
|
+
const _api = runIfFn(q.api);
|
2639
2639
|
return {
|
2640
2640
|
queryKey: _api.queryKey,
|
2641
2641
|
queryFn: q.fn == "get" ? _api.get : _api.getAll,
|