diff --git a/app/views/routes/index.html.haml b/app/views/routes/index.html.haml index d1eb3beb4..0f6a50c5c 100644 --- a/app/views/routes/index.html.haml +++ b/app/views/routes/index.html.haml @@ -40,7 +40,7 @@ .routeList__details %p.routeList__endpoint{:class => "routeList__endpoint--#{route.endpoint_type&.underscore || 'none'}"} - if route.mode == 'Endpoint' - = route.endpoint.description + = route.endpoint&.description || "Missing endpoint" - else = t("route_modes.#{route.mode.underscore}") %p.routeList__spamMode= t("route_spam_modes.#{route.spam_mode.underscore}")