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

@ -257,7 +257,8 @@ class CustomWizard::Builder
} }
).perform ).perform
if content && content[:type] == 'association' if content.present?
if content[:type] == 'association'
content[:result] = content[:result].map do |item| content[:result] = content[:result].map do |item|
{ {
id: item[:key], id: item[:key],
@ -268,6 +269,7 @@ class CustomWizard::Builder
params[:content] = content[:result] params[:content] = content[:result]
end end
end
field = step.add_field(params) field = step.add_field(params)
end end