fix: json 응답 필드명 수정으로 인한 JS 코드 수정

This commit is contained in:
이상진 2025-07-22 10:28:07 +09:00
parent c5ab3098d4
commit bd9243b9c9

View File

@ -121,9 +121,9 @@ function renderAvailableTimes(times) {
timeSlots.innerHTML = '<div class="no-times">선택할 수 있는 시간이 없습니다.</div>';
return;
}
times.data.reservationTimes.forEach(time => {
times.data.times.forEach(time => {
const startAt = time.startAt;
const timeId = time.timeId;
const timeId = time.id;
const alreadyBooked = time.alreadyBooked;
const div = createSlot('time', startAt, timeId, alreadyBooked); // createSlot('time', 시작 시간, time id, 예약 여부)