From 08ce5a607c5e0b66289f887b30742a711f1ce048 Mon Sep 17 00:00:00 2001 From: Anthony LC Date: Mon, 19 Feb 2024 12:33:07 +0100 Subject: [PATCH] =?UTF-8?q?fixup!=20=E2=9C=A8(app-desk)=20integrate=20team?= =?UTF-8?q?=20endpoint?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/frontend/apps/desk/src/features/teams/api/useTeam.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/frontend/apps/desk/src/features/teams/api/useTeam.tsx b/src/frontend/apps/desk/src/features/teams/api/useTeam.tsx index b025b9ace..ab389c675 100644 --- a/src/frontend/apps/desk/src/features/teams/api/useTeam.tsx +++ b/src/frontend/apps/desk/src/features/teams/api/useTeam.tsx @@ -21,14 +21,14 @@ export const getTeam = async ({ id }: TeamParams): Promise => { return response.json() as Promise; }; -export const KEY_LIST_TEAM = 'team'; +export const KEY_TEAM = 'team'; export function useTeam( param: TeamParams, queryConfig?: UseQueryOptions, ) { return useQuery({ - queryKey: [KEY_LIST_TEAM, param], + queryKey: [KEY_TEAM, param], queryFn: () => getTeam(param), ...queryConfig, });