diff --git a/lib/components/viewers/route-details.tsx b/lib/components/viewers/route-details.tsx index ac08e27ed..aaacb4a42 100644 --- a/lib/components/viewers/route-details.tsx +++ b/lib/components/viewers/route-details.tsx @@ -82,7 +82,7 @@ class RouteDetails extends Component { const { agency, patterns = {}, shortName, url } = route const pattern = patterns[patternId] - const moreDetailsURL = url || route.agency.url + const moreDetailsURL = url || route?.agency?.url const routeColor = getRouteColorBasedOnSettings(operator, route)