Skip to content

Commit

Permalink
Merge pull request #395 from HSLdevcom/daily-timetable-empty-days-hotfix
Browse files Browse the repository at this point in the history
Hotfix: empty column days fixed
  • Loading branch information
ahjyrkia authored Dec 12, 2023
2 parents 9c3dadc + fcd10c8 commit c26f785
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 c26f785

Please sign in to comment.