Fix bug.
This commit is contained in:
parent
4fd40830be
commit
d969d02990
|
@ -216,7 +216,7 @@ class Admin::CancerpredictsController < OrbitAdminController
|
||||||
@form_to_show[item] = item_hash
|
@form_to_show[item] = item_hash
|
||||||
elsif @form_to_show[item].class == Array
|
elsif @form_to_show[item].class == Array
|
||||||
if params_cancer[item].class != Array
|
if params_cancer[item].class != Array
|
||||||
@form_to_show[item] = YAML.load(params_cancer[item])
|
@form_to_show[item] = YAML.load(params_cancer[item]) rescue []
|
||||||
else
|
else
|
||||||
@form_to_show[item] = params_cancer[item]
|
@form_to_show[item] = params_cancer[item]
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue