Skip to content

Commit

Permalink
cancel en save knop routing correct
Browse files Browse the repository at this point in the history
  • Loading branch information
sPAICEcake committed May 21, 2024
1 parent a56ad00 commit c252912
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -476,6 +476,7 @@ export function AddChangeSubjectPage() {
.catch((err) => {
console.log(err)
})
navigate(`/course/${vakID}`)
} else {
instance
.put('vakken/' + vakID + '/', {
Expand All @@ -487,6 +488,7 @@ export function AddChangeSubjectPage() {
console.log(err)
alert(err.response.data)
})
navigate(`/course/${vakID}`)
}
}

Expand Down Expand Up @@ -659,7 +661,7 @@ export function AddChangeSubjectPage() {
<SecondaryButton
/* This is the large save button on the top of the page */
onClick={() =>
navigate(`/course/${vakID}`)
navigate(`/`)
}
>
{t('cancel')}
Expand Down

0 comments on commit c252912

Please sign in to comment.