Skip to content

Commit

Permalink
empty day columns fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
ahjyrkia committed Dec 12, 2023
1 parent 9c3dadc commit fcd10c8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/components/timetable/timetableContainer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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];
}
}
Expand Down

0 comments on commit fcd10c8

Please sign in to comment.