chore: 🤖 Add support for pagination in query method (#1991)

* chore: 🤖 Add support for pagination in query method
This commit is contained in:
Dharini Jeeva authored and Zhihe Li committed 2024-01-16 10:17:45 -05:00
1 parent 7dbd581a37
commit 459029530b
2 files changed
+25 -3

No files matched your search

+1 -1
View File
@@ -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,