Skip to content

Commit

Permalink
fix(client): redirect to forum page upon deleting a forum question
Browse files Browse the repository at this point in the history
  • Loading branch information
umitcan07 committed Nov 20, 2024
1 parent a43186f commit f4b7c6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/src/routes/Forum/Question.data.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,7 @@ export const deleteForumAction = (async ({ params }) => {
});
}

return response;
return redirect("/forum");
} catch (error) {
logger.error("Error in deleteForumAction", error);
useToastStore.getState().add({
Expand Down

0 comments on commit f4b7c6e

Please sign in to comment.