From bf0b4c169fa23c7fe39861017ad5d21446f48371 Mon Sep 17 00:00:00 2001 From: cmayeux05 <159168644+cmayeux05@users.noreply.github.com> Date: Wed, 6 Mar 2024 15:21:57 -0600 Subject: [PATCH] get rid of random console logs --- client/src/views/Mentor/Dashboard/AddMentor.jsx | 6 +++--- client/src/views/Mentor/Dashboard/MentorRegister.jsx | 9 ++------- .../documentation/1.0.0/full_documentation.json | 2 +- 3 files changed, 6 insertions(+), 11 deletions(-) diff --git a/client/src/views/Mentor/Dashboard/AddMentor.jsx b/client/src/views/Mentor/Dashboard/AddMentor.jsx index 71b1c231..361aa8ef 100644 --- a/client/src/views/Mentor/Dashboard/AddMentor.jsx +++ b/client/src/views/Mentor/Dashboard/AddMentor.jsx @@ -44,13 +44,13 @@ export default function AddMentor() { try { getMentor() .then(response => { - console.log(response); + //console.log(response); setMyID(response.data.id); const tempClassList = []; for (var i=0; i < response.data.classrooms.length; i++){ tempClassList.push(response.data.classrooms[i].id); } - console.log(tempClassList); + //console.log(tempClassList); setMyClassrooms(tempClassList); setSchool(response.data.school.id); setSchoolName(response.data.school.name); @@ -69,7 +69,7 @@ export default function AddMentor() { const fetchClassroomList = async () => { try { const response = await getSchoolList(); - console.log(response); + //console.log(response); const classroomData = response.data[school-1].classrooms.map(item => ({ id: item.id, name: item.name })) setClassroomList(classroomData); const newClassroomListToPass = []; diff --git a/client/src/views/Mentor/Dashboard/MentorRegister.jsx b/client/src/views/Mentor/Dashboard/MentorRegister.jsx index cfd7673d..11e2d1e4 100644 --- a/client/src/views/Mentor/Dashboard/MentorRegister.jsx +++ b/client/src/views/Mentor/Dashboard/MentorRegister.jsx @@ -69,10 +69,10 @@ export default function MentorRegister() { const fetchClassroomList = async () => { try { const response = await getSchoolList(); - console.log(response); + //console.log(response); const classroomData = response.data[school-1].classrooms.map(item => ({ id: item.id, name: item.name })) setClassroomList(classroomData); - console.log(classroomData); + //console.log(classroomData); } catch (error) { console.error('Error fetching classroom list:', error); } @@ -86,11 +86,6 @@ export default function MentorRegister() { }, [school]); - console.log(SchoolList); - - - - const handleLogin = () => { setLoading(true); createMentor('user', username.value, diff --git a/server/extensions/documentation/documentation/1.0.0/full_documentation.json b/server/extensions/documentation/documentation/1.0.0/full_documentation.json index 7bc9a449..52599929 100755 --- a/server/extensions/documentation/documentation/1.0.0/full_documentation.json +++ b/server/extensions/documentation/documentation/1.0.0/full_documentation.json @@ -14,7 +14,7 @@ "name": "Apache 2.0", "url": "https://www.apache.org/licenses/LICENSE-2.0.html" }, - "x-generation-date": "03/06/2024 4:13:32 PM" + "x-generation-date": "03/06/2024 9:12:04 PM" }, "x-strapi-config": { "path": "/documentation",