fix react query error

This commit is contained in:
Samuel Newman
2025-11-10 13:41:16 +02:00
parent 4791486aa7
commit 06d9681003
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -204,7 +204,7 @@ function Feed() {
}, [params])
const feedUri = params.type === 'feedgen' ? params.uri : undefined
const {data: feedInfo} = useFeedInfo(feedUri)
const feedFeedback = useFeedFeedback(feedInfo, hasSession)
const feedFeedback = useFeedFeedback(feedInfo ?? undefined, hasSession)
const {data, error, hasNextPage, isFetchingNextPage, fetchNextPage} =
usePostFeedQuery(
feedDesc,
+1 -1
View File
@@ -637,7 +637,7 @@ export function useFeedInfo(feedUri: string | undefined) {
queryKey: [feedInfoQueryKeyRoot, feedUri],
queryFn: async () => {
if (!feedUri) {
return undefined
return null
}
const res = await agent.app.bsky.feed.getFeedGenerator({