Skip to content

Commit

Permalink
Remove uneeded param
Browse files Browse the repository at this point in the history
Signed-off-by: Gilles Dubreuil <gdubreui@redhat.com>
  • Loading branch information
gildub committed Aug 3, 2023
1 parent ca70638 commit d0bf601
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions client/src/app/queries/proxies.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@ export const useFetchProxies = () => {
};

export const useUpdateProxyMutation = (
onSuccess: (res: any) => void,
onSuccess: () => void,
onError: (err: AxiosError) => void
) => {
const queryClient = useQueryClient();
return useMutation({
mutationFn: updateProxy,
onSuccess: (res) => {
onSuccess(res);
onSuccess: () => {
onSuccess();
queryClient.invalidateQueries([ProxiesTasksQueryKey]);
},
onError: onError,
Expand Down

0 comments on commit d0bf601

Please sign in to comment.