From 061dd0c2284ac990aec076c9af2a8f08316bc53b Mon Sep 17 00:00:00 2001 From: Mathieu Strypsteen Date: Thu, 23 May 2024 21:04:22 +0200 Subject: [PATCH] Remove console.log --- frontend/src/components/ManageCourse.tsx | 1 - frontend/src/utils/api/User.ts | 1 - 2 files changed, 2 deletions(-) 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'},