Skip to content

Commit

Permalink
chore: address pull request feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
Meierschlumpf committed Oct 1, 2024
1 parent d9277a9 commit 41740e5
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,13 @@ export const SearchEngineNewForm = () => {
const router = useRouter();

const { mutate, isPending } = clientApi.searchEngine.create.useMutation({
onSuccess: () => {
onSuccess: async () => {
showSuccessNotification({
title: t("success.title"),
message: t("success.message"),
});
void revalidatePathActionAsync("/manage/search-engines").then(() => {
router.push("/manage/search-engines");
});
await revalidatePathActionAsync("/manage/search-engines");
router.push("/manage/search-engines");
},
onError: () => {
showErrorNotification({
Expand Down

0 comments on commit 41740e5

Please sign in to comment.