Skip to content

Commit

Permalink
Fix incorrect nil handling of empty department
Browse files Browse the repository at this point in the history
  • Loading branch information
Robin481 committed Aug 26, 2024
1 parent af797a8 commit a8c6324
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/people/_profile.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
%th.fw-normal.text-gray
= Person.human_attribute_name(:department)
%tr
%td.pb-1= @person.department.name || "-"
%td.pb-1= @person.department&.name || "-"
%th.fw-normal.text-gray
= Person.human_attribute_name(:company)
%tr
Expand Down

0 comments on commit a8c6324

Please sign in to comment.