explicitly filter out labelers (#4629)
This commit is contained in:
parent
340c2c5eaf
commit
dd5198f317
3 changed files with 25 additions and 18 deletions
|
|
@ -38,10 +38,13 @@ export function StepProfiles({
|
|||
} = useActorSearchPaginated({
|
||||
query: encodeURIComponent('*'),
|
||||
})
|
||||
const topFollowers = topPages?.pages.flatMap(p => p.actors)
|
||||
const topFollowers = topPages?.pages
|
||||
.flatMap(p => p.actors)
|
||||
.filter(p => !p.associated?.labeler)
|
||||
|
||||
const {data: results, isFetching: isFetchingResults} =
|
||||
const {data: resultsUnfiltered, isFetching: isFetchingResults} =
|
||||
useActorAutocompleteQuery(query, true, 12)
|
||||
const results = resultsUnfiltered?.filter(p => !p.associated?.labeler)
|
||||
|
||||
const isLoading = isLoadingTopPages || isFetchingResults
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue