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 78c940b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/models/upvs/message_template.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 78c940b

Please sign in to comment.