From fcfbbf66841cfd1311b7e1a9010ab84dfb256699 Mon Sep 17 00:00:00 2001 From: Jake Coble Date: Thu, 17 Oct 2024 12:09:05 -0400 Subject: [PATCH] Clean up query page params --- src/components/organisms/cardSlider/section/index.tsx | 3 +-- src/containers/sponsor/list/all.tsx | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/components/organisms/cardSlider/section/index.tsx b/src/components/organisms/cardSlider/section/index.tsx index 8676e198f..192b33f73 100644 --- a/src/components/organisms/cardSlider/section/index.tsx +++ b/src/components/organisms/cardSlider/section/index.tsx @@ -79,13 +79,12 @@ export default function Section({ infiniteQuery( { language, after: null }, { - initialPageParam: { language, after: null }, + initialPageParam: null, getNextPageParam: (last: Maybe) => { if (!last) return; const pageInfo = selectPageInfo(last); if (!pageInfo?.hasNextPage) return; return { - language, after: pageInfo.endCursor, }; }, diff --git a/src/containers/sponsor/list/all.tsx b/src/containers/sponsor/list/all.tsx index dc5e6e248..3620577c8 100644 --- a/src/containers/sponsor/list/all.tsx +++ b/src/containers/sponsor/list/all.tsx @@ -26,7 +26,7 @@ export default function AllSponsors(props: Props) { getNextPageParam: (lastPage: Maybe) => { const pageInfo = lastPage?.sponsors.pageInfo; if (!pageInfo?.hasNextPage) return; - return { language, after: pageInfo.endCursor }; + return { after: pageInfo.endCursor }; }, initialPageParam: null, },