From f7f871204048cdd2ba6a36f2a168377671ec6980 Mon Sep 17 00:00:00 2001 From: amlannandy Date: Tue, 24 Dec 2024 20:31:07 +0530 Subject: [PATCH] chore: fix query key issue --- frontend/src/constants/reactQueryKeys.ts | 1 + frontend/src/hooks/infraMonitoring/useGetK8sClustersList.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/src/constants/reactQueryKeys.ts b/frontend/src/constants/reactQueryKeys.ts index 5520872201..a3a1a5124a 100644 --- a/frontend/src/constants/reactQueryKeys.ts +++ b/frontend/src/constants/reactQueryKeys.ts @@ -22,4 +22,5 @@ export const REACT_QUERY_KEY = { UPDATE_ALERT_RULE: 'UPDATE_ALERT_RULE', GET_ACTIVE_LICENSE_V3: 'GET_ACTIVE_LICENSE_V3', GET_POD_LIST: 'GET_POD_LIST', + GET_CLUSTER_LIST: 'GET_CLUSTER_LIST', }; diff --git a/frontend/src/hooks/infraMonitoring/useGetK8sClustersList.ts b/frontend/src/hooks/infraMonitoring/useGetK8sClustersList.ts index af8e74b9f6..9b248688c7 100644 --- a/frontend/src/hooks/infraMonitoring/useGetK8sClustersList.ts +++ b/frontend/src/hooks/infraMonitoring/useGetK8sClustersList.ts @@ -38,7 +38,7 @@ export const useGetK8sClustersList: UseGetK8sClustersList = ( return options.queryKey; } - return [REACT_QUERY_KEY.GET_HOST_LIST, requestData]; + return [REACT_QUERY_KEY.GET_CLUSTER_LIST, requestData]; }, [options?.queryKey, requestData]); return useQuery<