remove unused param
This commit is contained in:
@@ -20,11 +20,9 @@ export const RQKEY_PAGINATED = (query: string) => [
|
|||||||
|
|
||||||
export function useActorSearch({
|
export function useActorSearch({
|
||||||
query,
|
query,
|
||||||
limit = 20,
|
|
||||||
enabled,
|
enabled,
|
||||||
}: {
|
}: {
|
||||||
query: string
|
query: string
|
||||||
limit?: number
|
|
||||||
enabled?: boolean
|
enabled?: boolean
|
||||||
}) {
|
}) {
|
||||||
const agent = useAgent()
|
const agent = useAgent()
|
||||||
@@ -34,7 +32,6 @@ export function useActorSearch({
|
|||||||
async queryFn() {
|
async queryFn() {
|
||||||
const res = await agent.searchActors({
|
const res = await agent.searchActors({
|
||||||
q: query,
|
q: query,
|
||||||
limit,
|
|
||||||
})
|
})
|
||||||
return res.data.actors
|
return res.data.actors
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user