fix: server/client error on some dialogs.

This commit is contained in:
charlesgauthereau
2026-01-29 19:10:59 +01:00
parent 9327331adc
commit 95a60e9a96
4 changed files with 48 additions and 28 deletions
@@ -24,7 +24,7 @@ export const ButtonDeleteProject = (props: ButtonDeleteProjectProps) => {
onSuccess: async (result: any) => {
if (result.data?.success) {
toast.success(result.data.actionSuccess.message);
router.push("/");
router.push("/dashboard/projects");
} else {
toast.error(result.data.actionError.message || "Unknown error occurred.");
}