From a23565dbeb0732ada7ec98ac556ded12369a329d Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Mon, 10 Jan 2022 12:45:30 +0000 Subject: [PATCH] Fix crash when fetching queries set up before pagination existed --- packages/client/src/utils/fetch/QueryFetch.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/client/src/utils/fetch/QueryFetch.js b/packages/client/src/utils/fetch/QueryFetch.js index 6f1418f3bd..f9052886f3 100644 --- a/packages/client/src/utils/fetch/QueryFetch.js +++ b/packages/client/src/utils/fetch/QueryFetch.js @@ -23,7 +23,7 @@ export default class QueryFetch extends DataFetch { const { datasource, limit, paginate } = this.options const { supportsPagination } = get(this.featureStore) const { cursor, definition } = get(this.store) - const { type } = definition.fields.pagination + const type = definition?.fields?.pagination?.type // Set the default query params let parameters = cloneDeep(datasource?.queryParams || {})