From c252912a477fe56ffeadc420e32fec1815bbe8bf Mon Sep 17 00:00:00 2001 From: Alexandre Paice Date: Tue, 21 May 2024 11:55:58 +0200 Subject: [PATCH] cancel en save knop routing correct --- .../frontend/src/pages/subjectsPage/AddChangeSubjectPage.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/frontend/frontend/src/pages/subjectsPage/AddChangeSubjectPage.tsx b/frontend/frontend/src/pages/subjectsPage/AddChangeSubjectPage.tsx index 52ae6366..a43f97ae 100644 --- a/frontend/frontend/src/pages/subjectsPage/AddChangeSubjectPage.tsx +++ b/frontend/frontend/src/pages/subjectsPage/AddChangeSubjectPage.tsx @@ -476,6 +476,7 @@ export function AddChangeSubjectPage() { .catch((err) => { console.log(err) }) + navigate(`/course/${vakID}`) } else { instance .put('vakken/' + vakID + '/', { @@ -487,6 +488,7 @@ export function AddChangeSubjectPage() { console.log(err) alert(err.response.data) }) + navigate(`/course/${vakID}`) } } @@ -659,7 +661,7 @@ export function AddChangeSubjectPage() { - navigate(`/course/${vakID}`) + navigate(`/`) } > {t('cancel')}