From 841d949b31c878be89663776f972b96479bd0a13 Mon Sep 17 00:00:00 2001 From: Roland Bernard <rolbernard@unibz.it> Date: Thu, 3 Jun 2021 22:36:53 +0200 Subject: [PATCH] Project editing now goes back to the project after completion --- client/src/pages/Projects/ProjectEdit/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/pages/Projects/ProjectEdit/index.tsx b/client/src/pages/Projects/ProjectEdit/index.tsx index 2562ec0..6630112 100644 --- a/client/src/pages/Projects/ProjectEdit/index.tsx +++ b/client/src/pages/Projects/ProjectEdit/index.tsx @@ -43,7 +43,7 @@ export default function ProjectEdit() { status: status, deadline: deadline?.toString() }); - history.push('/projects'); + history.push(`/projects/${project.id}`); } } catch (e) { setError('There was an error with updating your project. Please try again!'); -- GitLab