1
0
Fork 0

Ensure content exists

Dieser Commit ist enthalten in:
Angus McLeod 2020-04-19 16:11:07 +10:00
Ursprung 20ca39bf2a
Commit bffdc1f363

Datei anzeigen

@ -256,17 +256,19 @@ class CustomWizard::Builder
with_type: true
}
).perform
if content && content[:type] == 'association'
content[:result] = content[:result].map do |item|
{
id: item[:key],
name: item[:value]
}
end
end
params[:content] = content[:result]
if content.present?
if content[:type] == 'association'
content[:result] = content[:result].map do |item|
{
id: item[:key],
name: item[:value]
}
end
end
params[:content] = content[:result]
end
end
field = step.add_field(params)