From fcd10c87bce40c5c8c7efb8f24c1846bd764bd78 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anton=20Jyrki=C3=A4inen?= Date: Tue, 12 Dec 2023 18:20:00 +0200 Subject: [PATCH] empty day columns fixed --- src/components/timetable/timetableContainer.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/components/timetable/timetableContainer.js b/src/components/timetable/timetableContainer.js index c0eb9c81..4a09f362 100644 --- a/src/components/timetable/timetableContainer.js +++ b/src/components/timetable/timetableContainer.js @@ -381,7 +381,11 @@ const propsMapper = mapProps(props => { const pickedDepartures = pick(groupedDepartures, props.segments); for (const segment of props.segments) { - if (segmentMap[segment]) { + if ( + segmentMap[segment] && + pickedDepartures[segment] && + pickedDepartures[segment].length > 0 + ) { result[segmentMap[segment]] = pickedDepartures[segment]; } }