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<