Skip to content

Commit

Permalink
fix next stop error for merged
Browse files Browse the repository at this point in the history
  • Loading branch information
AaronClaydon committed Oct 19, 2024
1 parent 15b9949 commit 85cf7d2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/views/Journeys/View.vue
Original file line number Diff line number Diff line change
Expand Up @@ -463,8 +463,6 @@ export default {
axios
.get(`${API.URL}/core/service_alerts/matching/${journeyPoint.stop.PrimaryIdentifier}`)
.then(response => {
console.log(journeyPoint.stop.PrimaryIdentifier, response.data)
if (response.data !== null) {
for (let index = 0; index < response.data.length; index++) {
const serviceAlert = response.data[index];
Expand Down Expand Up @@ -603,8 +601,10 @@ export default {
if (
!activeStop &&
journey.RealtimeJourney != undefined &&
journey.RealtimeJourney.NextStopRef ===
journeyPoints[index].stop.PrimaryIdentifier
(
journey.RealtimeJourney.NextStopRef === journeyPoints[index].stop.PrimaryIdentifier
|| journeyPoints[index].stop.OtherIdentifiers.includes(journey.RealtimeJourney.NextStopRef)
)
) {
activeStop = true
}
Expand Down

0 comments on commit 85cf7d2

Please sign in to comment.