fix error

This commit is contained in:
邱博亞 2022-03-10 14:12:30 +08:00
parent 0a7060addf
commit 34056ca18f
1 changed files with 2 additions and 2 deletions

View File

@ -10,7 +10,7 @@ module Admin::ApplicationFormsHelper
pages.each do |page|
if page.categories.count ==1
if page.categories.include?(application_form.category.id.to_s)
if page.categories.include?(application_form.category.id.to_s) rescue false
ann_page = page
end
end
@ -19,7 +19,7 @@ module Admin::ApplicationFormsHelper
if ann_page.nil?
pages.each do |page|
if page.categories.include?(application_form.category.id.to_s)
if page.categories.include?(application_form.category.id.to_s) rescue false
ann_page = page
end
break if !ann_page.nil?