From e187e8f2b1d961c39a00480ec49f8db839782ef5 Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Fri, 7 Jan 2022 11:03:55 +0000 Subject: [PATCH] Update client query fetch to better determine whether pagination is supported or not --- packages/client/src/utils/fetch/QueryFetch.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/client/src/utils/fetch/QueryFetch.js b/packages/client/src/utils/fetch/QueryFetch.js index 5176b11c25..4e7067a694 100644 --- a/packages/client/src/utils/fetch/QueryFetch.js +++ b/packages/client/src/utils/fetch/QueryFetch.js @@ -6,8 +6,9 @@ import { get } from "svelte/store" export default class QueryFetch extends DataFetch { determineFeatureFlags(definition) { const supportsPagination = - definition?.fields?.pagination?.type != null && - definition?.fields?.pagination?.pageParam != null + !!definition?.fields?.pagination?.type && + !!definition?.fields?.pagination?.location && + !!definition?.fields?.pagination?.pageParam return { supportsPagination } }