diff options
author | Eric Bailey <git@esb.lol> | 2023-11-30 15:53:34 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-30 13:53:34 -0800 |
commit | 28f8999252fa98e845ead61aa476b55ae2783601 (patch) | |
tree | 7dec79bbc1ac31677823c2014f447d554bb18a58 /src | |
parent | 76a3c66f54a3647527f51caf10327d8ccf1839a9 (diff) | |
download | voidsky-28f8999252fa98e845ead61aa476b55ae2783601.tar.zst |
Beep boop (#2051)
Diffstat (limited to 'src')
-rw-r--r-- | src/state/queries/post-feed.ts | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/state/queries/post-feed.ts b/src/state/queries/post-feed.ts index 209f1f544..7589aa346 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<FeedPageUnselected, RQPageParam>) => { const tuner = params?.disableTuner |