Skip to content
Snippets Groups Projects
Commit 79c4d44b authored by Arnaud Levy's avatar Arnaud Levy
Browse files

fix

parent 3743ad61
No related branches found
No related tags found
No related merge requests found
......@@ -91,7 +91,7 @@ GEM
execjs (~> 2)
aws-eventstream (1.2.0)
aws-partitions (1.600.0)
aws-sdk-core (3.131.1)
aws-sdk-core (3.131.2)
aws-eventstream (~> 1, >= 1.0.2)
aws-partitions (~> 1, >= 1.525.0)
aws-sigv4 (~> 1.1)
......@@ -298,7 +298,7 @@ GEM
mime-types-data (3.2022.0105)
mini_magick (4.11.0)
mini_mime (1.1.2)
minitest (5.16.0)
minitest (5.16.1)
msgpack (1.5.2)
multi_json (1.15.0)
multi_xml (0.6.0)
......
......@@ -5,6 +5,14 @@ class Communication::Block::Component::File < Communication::Block::Component::B
@blob ||= template.blob_with_id data['id']
end
def data=(value)
super
# Fix nil objects
@data = {} if @data.nil?
# Fix objects with no id
@data['id'] = '' unless @data.has_key? 'id'
end
def default_data
{
'id' => ''
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment