feat: upgrade next.js

This commit is contained in:
swve 2023-06-19 00:26:57 +02:00
parent 91cb5740ef
commit 64461919b3
4 changed files with 128 additions and 96 deletions

View file

@ -46,6 +46,9 @@ function CreateCourseModal({ closeModal, orgslug }: any) {
if (status.org_id == orgId) {
closeModal();
// reload the page
// terrible, nextjs right now doesn't mutate the page when the data changes
window.location.reload();
} else {
alert("Error creating course, please see console logs");
console.log(status);