Fix crash when fetching queries set up before pagination existed

This commit is contained in:
Andrew Kingston 2022-01-10 12:45:30 +00:00
parent 53b601ec9b
commit ad6b0714d3
1 changed files with 1 additions and 1 deletions

View File

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