Skip to content

Commit

Permalink
Small update
Browse files Browse the repository at this point in the history
  • Loading branch information
luciajanikova committed Oct 16, 2024
1 parent 1a69101 commit 8dfb31c
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions app/models/upvs/message_template.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 8dfb31c

Please sign in to comment.