From 79e07b7e61bf45a4248b3caf7beee3aa507085ed Mon Sep 17 00:00:00 2001 From: amlannandy Date: Tue, 24 Dec 2024 19:36:35 +0530 Subject: [PATCH] chore: fix query key issue --- frontend/src/constants/reactQueryKeys.ts | 1 + frontend/src/hooks/infraMonitoring/useGetK8sNamespacesList.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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<