@tribe-nest/forge 1.20.0 → 1.20.1
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
|
@@ -171,7 +171,12 @@ export function useAppCollectionAggregate(
|
|
|
171
171
|
{ where: opts?.where, search: opts?.search, aggregate },
|
|
172
172
|
appAuthConfig(),
|
|
173
173
|
);
|
|
174
|
-
|
|
174
|
+
// NOT `res.data.data`. The /public/apps/* endpoints return the result
|
|
175
|
+
// BARE — only the profile-scoped /public/collections/* ones wrap it in
|
|
176
|
+
// `{ data }`. Unwrapping here resolved undefined, which React Query
|
|
177
|
+
// rejects outright, so every call errored before reaching the caller.
|
|
178
|
+
// Matches useAppCollectionQuery above; keep the two in step.
|
|
179
|
+
return res.data;
|
|
175
180
|
},
|
|
176
181
|
enabled: (opts?.enabled ?? true) && !!appId && !!client && !!slug && !!aggregate,
|
|
177
182
|
});
|