From e6169cc9252c964b807910dccfef68fe127c08f2 Mon Sep 17 00:00:00 2001 From: Noe Terrier Date: Tue, 21 Jan 2025 16:38:35 +0100 Subject: [PATCH] style: custom name timetable fix --- src/components/Timetable.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/Timetable.tsx b/src/components/Timetable.tsx index 992de9e..050199b 100644 --- a/src/components/Timetable.tsx +++ b/src/components/Timetable.tsx @@ -145,14 +145,14 @@ export function Timetable(props: { activities: ICBDActivity[] }) { JSON.stringify(activity.timeslots) ); - timeslots.forEach(({ start_time, end_time, room }) => { + timeslots.forEach(({ start_time, end_time, room, custom_name }) => { let tStartTime = timeToMinutes(start_time); startTime = Math.min(tStartTime, startTime); let tEndTime = timeToMinutes(end_time); endTime = Math.max(tEndTime, endTime); if (!rooms[room]) rooms[room] = []; - rooms[room].push([{ start_time, end_time, room }, activity]); + rooms[room].push([{ start_time, end_time, room, custom_name }, activity]); }); });