diff --git a/frontend/src/constants/reactQueryKeys.ts b/frontend/src/constants/reactQueryKeys.ts index 36cf99157e..66ab79dc34 100644 --- a/frontend/src/constants/reactQueryKeys.ts +++ b/frontend/src/constants/reactQueryKeys.ts @@ -21,4 +21,5 @@ export const REACT_QUERY_KEY = { GET_HOST_LIST: 'GET_HOST_LIST', UPDATE_ALERT_RULE: 'UPDATE_ALERT_RULE', GET_ACTIVE_LICENSE_V3: 'GET_ACTIVE_LICENSE_V3', + GET_NAMESPACE_LIST: 'GET_NAMESPACE_LIST', }; diff --git a/frontend/src/hooks/infraMonitoring/useGetK8sNamespacesList.ts b/frontend/src/hooks/infraMonitoring/useGetK8sNamespacesList.ts index 323e5c1bc4..24763b4657 100644 --- a/frontend/src/hooks/infraMonitoring/useGetK8sNamespacesList.ts +++ b/frontend/src/hooks/infraMonitoring/useGetK8sNamespacesList.ts @@ -34,7 +34,7 @@ export const useGetK8sNamespacesList: UseGetK8sNamespacesList = ( return options.queryKey; } - return [REACT_QUERY_KEY.GET_HOST_LIST, requestData]; + return [REACT_QUERY_KEY.GET_NAMESPACE_LIST, requestData]; }, [options?.queryKey, requestData]); return useQuery<