From 28f8999252fa98e845ead61aa476b55ae2783601 Mon Sep 17 00:00:00 2001 From: Eric Bailey Date: Thu, 30 Nov 2023 15:53:34 -0600 Subject: [PATCH] Beep boop (#2051) --- src/state/queries/post-feed.ts | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/state/queries/post-feed.ts b/src/state/queries/post-feed.ts index 209f1f54..7589aa34 100644 --- a/src/state/queries/post-feed.ts +++ b/src/state/queries/post-feed.ts @@ -127,10 +127,13 @@ export function usePostFeedQuery( } }, initialPageParam: undefined, - getNextPageParam: lastPage => ({ - api: lastPage.api, - cursor: lastPage.cursor, - }), + getNextPageParam: lastPage => + lastPage.cursor + ? { + api: lastPage.api, + cursor: lastPage.cursor, + } + : undefined, select: useCallback( (data: InfiniteData) => { const tuner = params?.disableTuner