mirror of
https://github.com/rzmk/learnhouse.git
synced 2025-12-19 04:19:25 +00:00
feat: upgrade next.js
This commit is contained in:
parent
91cb5740ef
commit
64461919b3
4 changed files with 128 additions and 96 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue