Skip to content

Commit

Permalink
Merge pull request #824 from HSLdevcom/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
ahjyrkia authored Dec 2, 2024
2 parents c7939e6 + 009a917 commit 37e7796
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/components/sidepanel/SpeedAreaJourneyList.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,15 +131,13 @@ const SpeedAreaJourneyList = decorate(
if (journeyId && selectedJourneyId !== journeyId) {
journey.departureDate = date;
Journey.setSelectedJourney(journey);
const time = get(journey, "recordedTime");
if (time) {
Time.setTime(time);
}
} else {
Journey.setSelectedJourney(null);
}
} else if (journey.journeyType !== "journey") {
const time = get(journey, "vehiclePositions[0].recordedTime");
console.log(time);
if (time) {
Time.setTime(time);
}
}
},
[selectedJourneyId]
Expand Down

0 comments on commit 37e7796

Please sign in to comment.