mirror of
https://github.com/rzmk/learnhouse.git
synced 2025-12-19 04:19:25 +00:00
fix: more bugs
This commit is contained in:
parent
b069f1badf
commit
687f7b2116
5 changed files with 20 additions and 6 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -14,9 +14,9 @@ export const AuthenticatedClientElement = (props: AuthenticatedClientElementProp
|
|||
|
||||
// Available roles
|
||||
const org_roles_values = ["admin", "owner"];
|
||||
const user_roles_values = ["role_admin"];
|
||||
const user_roles_values = ["role_admin", "role_super_admin"];
|
||||
|
||||
|
||||
|
||||
|
||||
function checkRoles() {
|
||||
const org_id = props.orgId;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue