generated from pricelees/issue-pr-template
fix: json 응답 필드명 수정으로 인한 JS 코드 수정
This commit is contained in:
parent
c5ab3098d4
commit
bd9243b9c9
@ -121,9 +121,9 @@ function renderAvailableTimes(times) {
|
|||||||
timeSlots.innerHTML = '<div class="no-times">선택할 수 있는 시간이 없습니다.</div>';
|
timeSlots.innerHTML = '<div class="no-times">선택할 수 있는 시간이 없습니다.</div>';
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
times.data.reservationTimes.forEach(time => {
|
times.data.times.forEach(time => {
|
||||||
const startAt = time.startAt;
|
const startAt = time.startAt;
|
||||||
const timeId = time.timeId;
|
const timeId = time.id;
|
||||||
const alreadyBooked = time.alreadyBooked;
|
const alreadyBooked = time.alreadyBooked;
|
||||||
|
|
||||||
const div = createSlot('time', startAt, timeId, alreadyBooked); // createSlot('time', 시작 시간, time id, 예약 여부)
|
const div = createSlot('time', startAt, timeId, alreadyBooked); // createSlot('time', 시작 시간, time id, 예약 여부)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user