From a3af13750a20f0449f268ce5d2902c0bbe815a16 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A1ndor?= <9724897+sandroshu@users.noreply.github.com> Date: Wed, 13 May 2026 07:43:08 +0000 Subject: [PATCH] prevent nil description errors in routes view MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Handling missing route endpoint descriptions in routes/index.html.haml to avoid 500 errors when associated objects are nil or partially removed. Signed-off-by: Sándor <9724897+sandroshu@users.noreply.github.com> --- app/views/routes/index.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}")