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