about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authordan <dan.abramov@gmail.com>2024-04-04 18:14:44 +0100
committerGitHub <noreply@github.com>2024-04-04 18:14:44 +0100
commit3e88fdfbc464016fbddc0d2df5b34ec8dc02fdc5 (patch)
tree08ce0530ec136a003f780db1861c839129685570 /src
parent19b1721ef3fdf87a07e73acc0a3de224e8a1b669 (diff)
downloadvoidsky-3e88fdfbc464016fbddc0d2df5b34ec8dc02fdc5.tar.zst
Don't mutate array (#3403)
Diffstat (limited to 'src')
-rw-r--r--src/state/queries/labeler.ts10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/state/queries/labeler.ts b/src/state/queries/labeler.ts
index b2f93c4a4..e2df6959a 100644
--- a/src/state/queries/labeler.ts
+++ b/src/state/queries/labeler.ts
@@ -1,15 +1,15 @@
-import {z} from 'zod'
-import {useQuery, useMutation, useQueryClient} from '@tanstack/react-query'
 import {AppBskyLabelerDefs} from '@atproto/api'
+import {useMutation, useQuery, useQueryClient} from '@tanstack/react-query'
+import {z} from 'zod'
 
-import {getAgent} from '#/state/session'
-import {preferencesQueryKey} from '#/state/queries/preferences'
 import {STALE} from '#/state/queries'
+import {preferencesQueryKey} from '#/state/queries/preferences'
+import {getAgent} from '#/state/session'
 
 export const labelerInfoQueryKey = (did: string) => ['labeler-info', did]
 export const labelersInfoQueryKey = (dids: string[]) => [
   'labelers-info',
-  dids.sort(),
+  dids.slice().sort(),
 ]
 export const labelersDetailedInfoQueryKey = (dids: string[]) => [
   'labelers-detailed-info',