chore: 🤖 Add support for pagination in query method (#1991)
* chore: 🤖 Add support for pagination in query method
This commit is contained in:
1 parent
7dbd581a37
commit
459029530b
2 files changed
+25
-3
No files matched your search
@@ -149,7 +149,7 @@ export default class ApplicationSerializer extends RESTSerializer {
|
||||
);
|
||||
// Copy the data rooted under `items` in the existing payload into the new
|
||||
// payload under the expected root key name.
|
||||
transformedPayload[payloadKey] = structuredClone(payload.items);
|
||||
transformedPayload[payloadKey] = structuredClone(payload?.items);
|
||||
// Return the result of normalizing the transformed payload.
|
||||
return super.normalizeArrayResponse(
|
||||
store,
|
||||
|
||||
Reference in new issue
Block a user