Browse Source

Fix crash when fetching queries set up before pagination existed

pull/3962/head
Andrew Kingston 5 years ago
parent
commit
a23565dbeb
  1. 2
      packages/client/src/utils/fetch/QueryFetch.js

2
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 || {})

Loading…
Cancel
Save