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(