From 8dfb31cbc87c2858e852420ba84e9fc7684907ae 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 | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/app/models/upvs/message_template.rb b/app/models/upvs/message_template.rb index b8695ad8..6abeaef4 100644 --- a/app/models/upvs/message_template.rb +++ b/app/models/upvs/message_template.rb @@ -107,10 +107,8 @@ def build_message_from_template(message) end message.update( - html_visualization: message.metadata["data"]&.map do |k,v| - "#{k}: #{v}" - end&.join(', ') - ) + html_visualization: message.metadata["data"].map { _1.join(": ") }.join(", ") + ) if message.metadata["data"] if message.form_object.message_object_datum message.form_object.message_object_datum.update(