Skip to content

Commit 1204f2f

Browse files
authored
Merge pull request #209 from pirogramming/frontend_admin_sj
[Fix] 출석 수정 카드 드롭다운 수정
2 parents 015bc2e + b4ca691 commit 1204f2f

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

frontend/src/components/AdminDailyAttendanceCard.jsx

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ const AdminDailyAttendanceCard = ({ date, order,studentId, onClose }) => {
6868

6969
const handleChange = (idx, newValue) => {
7070
const newSlots = [...slots];
71-
newSlots[idx].status = newValue === "SUCCESS";
71+
newSlots[idx].status = newValue;
7272
setSlots(newSlots);
7373

7474
const newModified = [...modified];
@@ -88,9 +88,18 @@ const AdminDailyAttendanceCard = ({ date, order,studentId, onClose }) => {
8888
const newModified = [...modified];
8989
newModified[idx] = false;
9090
setModified(newModified);
91+
92+
console.log("📝 저장 요청", {
93+
id: slot.id,
94+
order: slot.order,
95+
date: slot.date,
96+
status: slot.status,
97+
});
98+
9199
} catch (err) {
92100
console.error("슬롯 저장 실패:", err);
93101
alert("저장 실패");
102+
94103
}
95104
};
96105

0 commit comments

Comments
 (0)