Skip to content

Commit

Permalink
🐛 [backport release-0.2] Fix missing notification for adding tracker (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
ibolton336 committed Jul 20, 2023
1 parent ca65d2b commit a9a102e
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 a9a102e

Please sign in to comment.