This commit is contained in:
BoHung Chiu 2022-01-28 15:52:07 +08:00
parent f897f12ef5
commit 163805f8c1
1 changed files with 1 additions and 1 deletions
app/controllers/admin

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