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 26a83fb commit f7f8712
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 @@ -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',
};
Original file line number Diff line number Diff line change
Expand Up @@ -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<
Expand Down

0 comments on commit f7f8712

Please sign in to comment.