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