Skip to content

Commit

Permalink
fix(gtfs-search): fix bad filtering of gtfs-api results due to stop_c…
Browse files Browse the repository at this point in the history
…ode mismatch
  • Loading branch information
landonreed committed May 30, 2017
1 parent 255ac98 commit e4b9c34
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/gtfs/components/gtfssearch.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,10 +106,11 @@ export default class GtfsSearch extends Component {
}
}).map(stop => {
const agency = getFeed(this.props.feeds, stop.feed_id)
const id = stop.stop_code ? stop.stop_code : stop.stop_id
return {
stop,
value: stop.stop_id,
label: `${stop.stop_name} (${stop.stop_id})`,
label: `${stop.stop_name} (${id})`,
agency: agency
}
})
Expand Down

0 comments on commit e4b9c34

Please sign in to comment.