From 4f7e7d4081ccc27f2fcc580750c8ad656d17e3a3 Mon Sep 17 00:00:00 2001 From: luciajanikova <19lucia99@gmail.com> Date: Fri, 25 Oct 2024 22:04:39 +0200 Subject: [PATCH] Add missing safe navigation to template --- app/components/message_state_component.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/components/message_state_component.html.erb b/app/components/message_state_component.html.erb index a32db3dd..447e2aa7 100644 --- a/app/components/message_state_component.html.erb +++ b/app/components/message_state_component.html.erb @@ -1,6 +1,6 @@ <% if @message.form_object&.is_signed? || @message.form_object.present? || @message.authorized? %>
- <% if @message.form_object.tags.signed_by.any? %> + <% if @message.form_object&.tags&.signed_by&.any? %> <% @message.form_object.tags.signed_by.each do |tag| %> <%= render Common::BadgeComponent.new(tag.name, "green", "fingerprint") %> <% end %>