diff --git a/frontend/packages/volto-techevent/news/22.bugfix b/frontend/packages/volto-techevent/news/22.bugfix new file mode 100644 index 0000000..1e42f4d --- /dev/null +++ b/frontend/packages/volto-techevent/news/22.bugfix @@ -0,0 +1 @@ +Add time indication for all slots in a Schedule block. @ericof diff --git a/frontend/packages/volto-techevent/src/components/Schedule/DaySchedule.tsx b/frontend/packages/volto-techevent/src/components/Schedule/DaySchedule.tsx index 0263f84..8a01d2b 100644 --- a/frontend/packages/volto-techevent/src/components/Schedule/DaySchedule.tsx +++ b/frontend/packages/volto-techevent/src/components/Schedule/DaySchedule.tsx @@ -138,13 +138,15 @@ const DaySchedule = (props) => { ); })} {(() => { + const timeSlots = {}; const finalSlots = []; slots.forEach((slot, slotIndex) => { - if (slot.gridColumn?.startsWith('room-1')) { + if (timeSlots[slot.start] === undefined) { const slot_category = slot.slot_category && slot.slot_category !== 'activity' ? slot.slot_category : slot['@type']; + timeSlots[slot.start] = true; finalSlots.push({ '@type': 'aside', start: slot.start,