Ensure content exists
Dieser Commit ist enthalten in:
Ursprung
20ca39bf2a
Commit
bffdc1f363
1 geänderte Dateien mit 12 neuen und 10 gelöschten Zeilen
|
@ -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
|
||||||
|
|
Laden …
In neuem Issue referenzieren