Skip to content

Commit 263d2ce

Browse files
authored
style: custom name timetable fix (#98)
1 parent a762fdb commit 263d2ce

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/Timetable.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -145,14 +145,14 @@ export function Timetable(props: { activities: ICBDActivity[] }) {
145145
JSON.stringify(activity.timeslots)
146146
);
147147

148-
timeslots.forEach(({ start_time, end_time, room }) => {
148+
timeslots.forEach(({ start_time, end_time, room, custom_name }) => {
149149
let tStartTime = timeToMinutes(start_time);
150150
startTime = Math.min(tStartTime, startTime);
151151
let tEndTime = timeToMinutes(end_time);
152152
endTime = Math.max(tEndTime, endTime);
153153

154154
if (!rooms[room]) rooms[room] = [];
155-
rooms[room].push([{ start_time, end_time, room }, activity]);
155+
rooms[room].push([{ start_time, end_time, room, custom_name }, activity]);
156156
});
157157
});
158158

0 commit comments

Comments
 (0)