fix: more bugs

This commit is contained in:
swve 2023-07-08 13:26:23 +01:00
parent b069f1badf
commit 687f7b2116
5 changed files with 20 additions and 6 deletions

View file

@ -49,9 +49,10 @@ function CreateCourseModal({ closeModal, orgslug }: any) {
if (status.org_id == orgId) {
closeModal();
router.refresh();
revalidateTags(['courses'], orgslug);
// refresh page (FIX for Next.js BUG)
window.location.reload();
// window.location.reload();
} else {
alert("Error creating course, please see console logs");
console.log(status);