From a8c632426d95d9cc4ea85a2faa7999a7ab9d27b8 Mon Sep 17 00:00:00 2001 From: Robin Steiner Date: Mon, 26 Aug 2024 10:34:58 +0200 Subject: [PATCH] Fix incorrect nil handling of empty department --- app/views/people/_profile.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/people/_profile.html.haml b/app/views/people/_profile.html.haml index bd2048907..5f842803e 100644 --- a/app/views/people/_profile.html.haml +++ b/app/views/people/_profile.html.haml @@ -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