From c5102a735cea0969505668c9956d721f7be0fd39 Mon Sep 17 00:00:00 2001 From: Finn Bacall Date: Tue, 10 Dec 2024 18:12:54 +0000 Subject: [PATCH] Content can be nil if partial returns without rendering --- app/views/layouts/_activity.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/layouts/_activity.html.erb b/app/views/layouts/_activity.html.erb index 863d62e53..091ed13fc 100644 --- a/app/views/layouts/_activity.html.erb +++ b/app/views/layouts/_activity.html.erb @@ -1,5 +1,5 @@ <% content = yield %> -<% unless content.strip.blank? %> +<% unless content&.strip.blank? %>
<%= content %>