diff --git a/frontend/src/components/ManageCourse.tsx b/frontend/src/components/ManageCourse.tsx index 29151f5b..cabc6f02 100644 --- a/frontend/src/components/ManageCourse.tsx +++ b/frontend/src/components/ManageCourse.tsx @@ -8,7 +8,6 @@ import adminLoader from "../dataloaders/AdminLoader.ts"; async function get_teachers(current_teachers: { name: string, email: string, id: number }[]) { const data = await adminLoader(); // Replace this with your actual data fetching logic const users = data.users.filter((user) => user.user_roles.includes("TEACHER")); - console.log(users) return users.map((user) => ({ name: user.user_name, email: user.user_email, diff --git a/frontend/src/utils/api/User.ts b/frontend/src/utils/api/User.ts index 0adbdf12..3e01e2a8 100644 --- a/frontend/src/utils/api/User.ts +++ b/frontend/src/utils/api/User.ts @@ -11,7 +11,6 @@ export function modify_language(language: string): void { } export function modify_roles(userId: number, roles: string[]): void { - console.log(JSON.stringify(roles)) void apiFetch(`/users/${userId}?roles=${JSON.stringify({roles})}`, { method: 'PUT', headers: {'Content-Type': 'application/json'},