Skip to content

Commit

Permalink
🐛 Fix missing notification for adding tracker (#1176)
Browse files Browse the repository at this point in the history
- Resolves https://issues.redhat.com/browse/MTA-973?filter=-1

Signed-off-by: ibolton336 <ibolton@redhat.com>
  • Loading branch information
ibolton336 authored Jul 20, 2023
1 parent d5b0a88 commit c46dd71
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions client/src/app/pages/external/jira/tracker-form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export const TrackerForm: React.FC<TrackerFormProps> = ({
const onCreateTrackerSuccess = (_: AxiosResponse<Tracker>) =>
pushNotification({
title: t("toastr.success.save", {
type: t("terms.instance").toLocaleLowerCase(),
type: t("terms.instance"),
}),
variant: "success",
});
Expand All @@ -95,7 +95,7 @@ export const TrackerForm: React.FC<TrackerFormProps> = ({
const onUpdateTrackerSuccess = (_: AxiosResponse<Tracker>) =>
pushNotification({
title: t("toastr.success.save", {
type: t("terms.instance").toLocaleLowerCase(),
type: t("terms.instance"),
}),
variant: "success",
});
Expand Down
4 changes: 2 additions & 2 deletions client/src/app/queries/trackers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ export const useCreateTrackerMutation = (
const queryClient = useQueryClient();
return useMutation({
mutationFn: createTracker,
onSuccess: () => {
onSuccess;
onSuccess: (res) => {
onSuccess(res);
queryClient.invalidateQueries([TrackersQueryKey]);
},
onError: onError,
Expand Down

0 comments on commit c46dd71

Please sign in to comment.