Skip to content

Commit

Permalink
chore: fix query key issue
Browse files Browse the repository at this point in the history
  • Loading branch information
amlannandy committed Dec 24, 2024
1 parent 384b309 commit 79e07b7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions frontend/src/constants/reactQueryKeys.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
};
Original file line number Diff line number Diff line change
Expand Up @@ -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<
Expand Down

0 comments on commit 79e07b7

Please sign in to comment.