replace deprecated `term` with `q` in search actor (#3405)
parent
b783745b2e
commit
c190fd58ec
|
@ -30,7 +30,7 @@ export function useActorAutocompleteQuery(prefix: string) {
|
|||
async queryFn() {
|
||||
const res = prefix
|
||||
? await getAgent().searchActorsTypeahead({
|
||||
term: prefix,
|
||||
q: prefix,
|
||||
limit: 8,
|
||||
})
|
||||
: undefined
|
||||
|
@ -68,7 +68,7 @@ export function useActorAutocompleteFn() {
|
|||
queryKey: RQKEY(query || ''),
|
||||
queryFn: () =>
|
||||
getAgent().searchActorsTypeahead({
|
||||
term: query,
|
||||
q: query,
|
||||
limit,
|
||||
}),
|
||||
})
|
||||
|
|
|
@ -13,7 +13,7 @@ export function useActorSearch(prefix: string) {
|
|||
queryKey: RQKEY(prefix || ''),
|
||||
async queryFn() {
|
||||
const res = await getAgent().searchActors({
|
||||
term: prefix,
|
||||
q: prefix,
|
||||
})
|
||||
return res.data.actors
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue