Skip to content

Commit

Permalink
complete pr feedback addressing
Browse files Browse the repository at this point in the history
  • Loading branch information
miles-grant-ibigroup committed Oct 7, 2024
1 parent b457c6f commit 999c8a9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 5 additions & 7 deletions lib/actions/apiV2.js
Original file line number Diff line number Diff line change
Expand Up @@ -832,12 +832,10 @@ export function findRoutes() {

dispatch(
createGraphQLQueryAction(
`{
routes ${
currentServiceWeek
? `(serviceDates: {start: "${currentServiceWeek.start}", end: "${currentServiceWeek.end}"})`
: ''
}{
`query Routes(
$currentServiceWeek: LocalDateRangeInput
) {
routes (serviceDates: $currentServiceWeek) {
id: gtfsId
agency {
id: gtfsId
Expand All @@ -852,7 +850,7 @@ export function findRoutes() {
}
}
`,
{},
{ currentServiceWeek },
findRoutesResponse,
findRoutesError,
{
Expand Down
2 changes: 2 additions & 0 deletions lib/components/viewers/nearby/stop.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ const Stop = ({
(a: StopTime, b: StopTime) => fullTimestamp(a) - fullTimestamp(b)
)
if (
// NearbyRoutes if present is populated with a list of routes that appear
// in the current service period.
stopData.nearbyRoutes &&
!stopData.nearbyRoutes.includes(st?.pattern?.route?.gtfsId)
) {
Expand Down

0 comments on commit 999c8a9

Please sign in to comment.