diff options
Diffstat (limited to 'src/state')
-rw-r--r-- | src/state/queries/postgate/index.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/state/queries/postgate/index.ts b/src/state/queries/postgate/index.ts index 346e7bfe2..8c86dc017 100644 --- a/src/state/queries/postgate/index.ts +++ b/src/state/queries/postgate/index.ts @@ -2,10 +2,10 @@ import React from 'react' import { AppBskyEmbedRecord, AppBskyEmbedRecordWithMedia, - AppBskyFeedDefs, + type AppBskyFeedDefs, AppBskyFeedPostgate, AtUri, - BskyAgent, + type BskyAgent, } from '@atproto/api' import {useMutation, useQuery, useQueryClient} from '@tanstack/react-query' @@ -139,7 +139,7 @@ export function usePostgateQuery({postUri}: {postUri: string}) { staleTime: STALE.SECONDS.THIRTY, queryKey: createPostgateQueryKey(postUri), async queryFn() { - return (await getPostgateRecord({agent, postUri})) ?? null + return await getPostgateRecord({agent, postUri}).then(res => res ?? null) }, }) } |