Skip to content

Commit

Permalink
Set query options correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
jakecoble committed Oct 17, 2024
1 parent f777b39 commit 77a0e9f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/components/organisms/cardSlider/section/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export default function Section<T extends GraphqlInfiniteQuery, N>({

const { data, fetchNextPage, isFetchingNextPage, hasNextPage } =
infiniteQuery(
{ language, after: 'after' },
{ language, after: null },
{
getNextPageParam: (last: Maybe<GraphqlInfiniteQuery>) => {
if (!last) return;
Expand Down
2 changes: 1 addition & 1 deletion src/containers/presenter/list/all.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export default function All(props: PresentersProps) {
useInfiniteGetPresenterListAllPageDataQuery(
{
language,
after: 'after',
after: null,
},
{
getNextPageParam: (lastPage) =>
Expand Down
2 changes: 1 addition & 1 deletion src/containers/sponsor/list/all.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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<GetSponsorListAllPageDataQuery>) => {
const pageInfo = lastPage?.sponsors.pageInfo;
Expand Down

0 comments on commit 77a0e9f

Please sign in to comment.