Skip to content

Commit

Permalink
Added sub_category placeholder when category is null
Browse files Browse the repository at this point in the history
  • Loading branch information
edwin-jebaraj committed Dec 13, 2024
1 parent 9336289 commit 82416d3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/controllers/support/cases/email_evaluators_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,11 @@ def set_current_case
end

def category_name
@category_name = Support::Category.find(current_case.category_id).try(:title)
@category_name = if current_case.category_id.nil?
"[sub_category]"
else
Support::Category.find(current_case.category_id).try(:title)
end
end

def organisation_name
Expand Down

0 comments on commit 82416d3

Please sign in to comment.