mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-14 23:21:35 +00:00
fix(ui): keep user id boundaries in email lookup query key
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
parent
9c541d9ce3
commit
bde96e3197
1 changed files with 1 additions and 1 deletions
|
|
@ -44,7 +44,7 @@ export const useUserEmailLookup = (userIds: readonly string[]) => {
|
|||
const { accessToken, userRole } = useAuthorized();
|
||||
const distinctIds = Array.from(new Set(userIds.filter((id) => id !== ""))).sort();
|
||||
return useQuery<Record<string, string>>({
|
||||
queryKey: userLookupKeys.list({ filters: { ids: distinctIds.join(",") } }),
|
||||
queryKey: userLookupKeys.list({ filters: { ids: JSON.stringify(distinctIds) } }),
|
||||
queryFn: async () => {
|
||||
const ids = distinctIds.slice(0, USER_LIST_MAX_PAGE_SIZE);
|
||||
const response = await userListCall(accessToken!, ids, 1, ids.length);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue