diff --git a/app/controllers/admin/cancerpredicts_controller.rb b/app/controllers/admin/cancerpredicts_controller.rb index 3aa6b02..324f6f3 100644 --- a/app/controllers/admin/cancerpredicts_controller.rb +++ b/app/controllers/admin/cancerpredicts_controller.rb @@ -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