From 77a0e9f79ed8309df9e32bd5b1e366e4feb589d5 Mon Sep 17 00:00:00 2001 From: Jake Coble Date: Thu, 17 Oct 2024 11:34:49 -0400 Subject: [PATCH] Set query options correctly --- src/components/organisms/cardSlider/section/index.tsx | 2 +- src/containers/presenter/list/all.tsx | 2 +- src/containers/sponsor/list/all.tsx | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/organisms/cardSlider/section/index.tsx b/src/components/organisms/cardSlider/section/index.tsx index 3c7b13fa4..20578142b 100644 --- a/src/components/organisms/cardSlider/section/index.tsx +++ b/src/components/organisms/cardSlider/section/index.tsx @@ -77,7 +77,7 @@ export default function Section({ const { data, fetchNextPage, isFetchingNextPage, hasNextPage } = infiniteQuery( - { language, after: 'after' }, + { language, after: null }, { getNextPageParam: (last: Maybe) => { if (!last) return; diff --git a/src/containers/presenter/list/all.tsx b/src/containers/presenter/list/all.tsx index dccbfea54..2872330c6 100644 --- a/src/containers/presenter/list/all.tsx +++ b/src/containers/presenter/list/all.tsx @@ -17,7 +17,7 @@ export default function All(props: PresentersProps) { useInfiniteGetPresenterListAllPageDataQuery( { language, - after: 'after', + after: null, }, { getNextPageParam: (lastPage) => diff --git a/src/containers/sponsor/list/all.tsx b/src/containers/sponsor/list/all.tsx index 27a9ac5d0..dc5e6e248 100644 --- a/src/containers/sponsor/list/all.tsx +++ b/src/containers/sponsor/list/all.tsx @@ -21,7 +21,7 @@ export default function AllSponsors(props: Props) { const { data, hasNextPage, fetchNextPage, isLoading, isFetchingNextPage } = useInfiniteGetSponsorListAllPageDataQuery( - { language, after: 'after' }, + { language, after: null }, { getNextPageParam: (lastPage: Maybe) => { const pageInfo = lastPage?.sponsors.pageInfo;