From 78c940bfa5c9c5eed57d249a63537a939be25632 Mon Sep 17 00:00:00 2001 From: luciajanikova <19lucia99@gmail.com> Date: Wed, 16 Oct 2024 08:33:26 +0200 Subject: [PATCH] Small update --- app/models/upvs/message_template.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/upvs/message_template.rb b/app/models/upvs/message_template.rb index b8695ad8..390ec215 100644 --- a/app/models/upvs/message_template.rb +++ b/app/models/upvs/message_template.rb @@ -107,10 +107,10 @@ def build_message_from_template(message) end message.update( - html_visualization: message.metadata["data"]&.map do |k,v| + html_visualization: message.metadata["data"].map do |k,v| "#{k}: #{v}" end&.join(', ') - ) + ) if message.metadata["data"].present? if message.form_object.message_object_datum message.form_object.message_object_datum.update(