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(