Skip to content

Commit 24847b2

Browse files
authored
Merge pull request #146 from pirogramming/main
[fix]: manage-students-controller api에서 보내는 student id 확인중
2 parents 7d7fe68 + e09a6c8 commit 24847b2

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

frontend/src/api/students.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ export const getStudentsByName = async (name) => {
44
const res = await api.get(`/admin/managestudent`, {
55
params: { name },
66
});
7+
console.log("💬 getStudentsByName 응답:", res.data);
78
return res.data; // [{ id: ..., name: ... }]
89
};
910

frontend/src/pages/admin/ManageStudent.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ const ManageStudent = () => {
5656
/>
5757
<div className={style.student_list}>
5858
{paginatedStudents.map((student, index) => {
59-
console.log("student to show:", student); // 🔍 여기 추가
59+
console.log("student to show:", student);
6060
return (
6161
<button
6262
key={student.id || index}

0 commit comments

Comments
 (0)