diff --git a/lib/components/map/connected-stop-viewer-overlay.js b/lib/components/map/connected-stop-viewer-overlay.js index ead3f0868..f86516861 100644 --- a/lib/components/map/connected-stop-viewer-overlay.js +++ b/lib/components/map/connected-stop-viewer-overlay.js @@ -7,7 +7,7 @@ import { connect } from 'react-redux' const mapStateToProps = (state, ownProps) => { const viewedStop = state.otp.ui.viewedStop return { - stopData: viewedStop + stop: viewedStop ? state.otp.transitIndex.stops[viewedStop.stopId] : null, StopMarker: DefaultStopMarker