This commit is contained in:
BoHung Chiu 2022-01-28 15:51:58 +08:00
parent 4fd40830be
commit d969d02990
1 changed files with 1 additions and 1 deletions

View File

@ -216,7 +216,7 @@ class Admin::CancerpredictsController < OrbitAdminController
@form_to_show[item] = item_hash
elsif @form_to_show[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
@form_to_show[item] = params_cancer[item]
end