2 alerts
-
-
-
2 alerts
-
-
-
1 min
-
-
-
@@ -141368,7 +141007,7 @@ exports[`Storyshots ItineraryBody/otp-ui Tnc Transit Itinerary 2`] = `
style={Object {}}
>
@@ -141411,14 +141050,14 @@ exports[`Storyshots ItineraryBody/otp-ui Tnc Transit Itinerary 2`] = `
className="c3"
>
Burnside/Stark
@@ -141475,17 +141114,17 @@ exports[`Storyshots ItineraryBody/otp-ui Tnc Transit Itinerary 2`] = `
Ride
20
Burnside/Stark
@@ -141531,24 +141170,24 @@ exports[`Storyshots ItineraryBody/otp-ui Tnc Transit Itinerary 2`] = `
/>
@@ -142033,7 +141653,7 @@ exports[`Storyshots ItineraryBody/otp-ui Tnc Transit Itinerary 2`] = `
>
2 alerts
-
-
-
-
-
2 alerts
-
-
-
-
-
0 min
-
-
-
-
-
@@ -180047,25 +179610,6 @@ exports[`Storyshots ItineraryBody/otp-ui Zero Alerts Always Collapsing 2`] = `
onClick={[Function]}
>
0 min
-
-
-
-
-
@@ -184714,25 +184258,6 @@ exports[`Storyshots ItineraryBody/otp-ui Zero Alerts Not Always Collapsing 2`] =
onClick={[Function]}
>
0 min
-
-
-
-
-
@@ -189380,25 +188905,6 @@ exports[`Storyshots ItineraryBody/otp-ui Zero Alerts Without Collapsing Prop 2`]
onClick={[Function]}
>
0 min
-
-
-
-
-
diff --git a/packages/itinerary-body/src/AccessLegBody/index.tsx b/packages/itinerary-body/src/AccessLegBody/index.tsx
index 5ab1c8e31..4f9a3e51b 100644
--- a/packages/itinerary-body/src/AccessLegBody/index.tsx
+++ b/packages/itinerary-body/src/AccessLegBody/index.tsx
@@ -138,7 +138,9 @@ class AccessLegBody extends Component {
onClick={this.onStepsHeaderClick}
>
- {leg.steps && }
+ {leg.steps && leg.steps.length > 0 && (
+
+ )}
{
alertCount: alerts.length
}}
/>
-
+ {!shouldOnlyShowAlertsExpanded && (
+
+ )}
)}
diff --git a/yarn.lock b/yarn.lock
index cde8ef964..0bd4801d9 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -3241,23 +3241,15 @@
resolved "https://registry.yarnpkg.com/@open-draft/until/-/until-1.0.3.tgz#db9cc719191a62e7d9200f6e7bab21c5b848adca"
integrity sha512-Aq58f5HiWdyDlFffbbSjAlv596h/cOnt2DO1w3DOC7OJ5EHs0hd/nycJfiu9RJbT6Yk6F1knnRRXNSpxoIVZ9Q==
-"@opentripplanner/core-utils@11.1.2":
- version "11.1.2"
- resolved "https://registry.yarnpkg.com/@opentripplanner/core-utils/-/core-utils-11.1.2.tgz#a99d1fa4fb1f587d58fae8fcfd70a3bfe4eed424"
- integrity sha512-Rn1tBm5F+nt/A4/0cpq6cyNTprSsxfFslujMoZ4P4r6fZ7YTx0d25di+MZ/CZgSlCzHJIiGAfi8DsfJ7yStcTA==
+"@opentripplanner/geocoder@^1.4.2":
+ version "1.4.2"
+ resolved "https://registry.yarnpkg.com/@opentripplanner/geocoder/-/geocoder-1.4.2.tgz#0f827dffca42c7f7a23063b54990a291dd028b80"
+ integrity sha512-yzMVrKXEHO6Y50j9kntk1+odvHaqn9K9D4aKJAd+EabhiZckesfScLb0updmWRUloEWjN45nuDSFto8fbU7Uiw==
dependencies:
+ "@conveyal/geocoder-arcgis-geojson" "^0.0.3"
"@conveyal/lonlat" "^1.4.1"
- "@mapbox/polyline" "^1.1.0"
- "@opentripplanner/geocoder" "^1.4.2"
- "@styled-icons/foundation" "^10.34.0"
- "@turf/along" "^6.0.1"
- chroma-js "^2.4.2"
- date-fns "^2.28.0"
- date-fns-tz "^1.2.2"
- graphql "^16.6.0"
- lodash.clonedeep "^4.5.0"
- lodash.isequal "^4.5.0"
- qs "^6.9.1"
+ isomorphic-mapzen-search "^1.6.1"
+ lodash.memoize "^4.1.2"
"@opentripplanner/types@7.0.0-alpha.2":
version "7.0.0-alpha.2"