convert prefix to lowercase in actor autocomplete query (#2431)
This commit is contained in:
parent
928a626c2e
commit
cb9ed35cf6
1 changed files with 2 additions and 0 deletions
|
@ -24,6 +24,8 @@ export function useActorAutocompleteQuery(prefix: string) {
|
|||
const {data: follows, isFetching} = useMyFollowsQuery()
|
||||
const moderationOpts = useModerationOpts()
|
||||
|
||||
prefix = prefix.toLowerCase()
|
||||
|
||||
return useQuery<AppBskyActorDefs.ProfileViewBasic[]>({
|
||||
staleTime: STALE.MINUTES.ONE,
|
||||
queryKey: RQKEY(prefix || ''),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue