Avoid dups due to bad config
This commit is contained in:
@@ -17,8 +17,12 @@ export const DEFAULT_LOGGED_OUT_LABEL_PREFERENCES: typeof DEFAULT_LABEL_SETTINGS
|
|||||||
|
|
||||||
export function useMyLabelers() {
|
export function useMyLabelers() {
|
||||||
const prefs = usePreferencesQuery()
|
const prefs = usePreferencesQuery()
|
||||||
const dids = BskyAgent.modAuthoritiesHeader.concat(
|
const dids = Array.from(
|
||||||
prefs.data?.moderationPrefs.labelers.map(l => l.did) || [],
|
new Set(
|
||||||
|
BskyAgent.modAuthoritiesHeader.concat(
|
||||||
|
prefs.data?.moderationPrefs.labelers.map(l => l.did) || [],
|
||||||
|
),
|
||||||
|
),
|
||||||
)
|
)
|
||||||
const labelers = useLabelersDetailedInfoQuery({dids})
|
const labelers = useLabelersDetailedInfoQuery({dids})
|
||||||
return {
|
return {
|
||||||
|
|||||||
Reference in New Issue
Block a user