diff --git a/app/domain/people_search.rb b/app/domain/people_search.rb index aeac0ba00..d9f4a5fc4 100644 --- a/app/domain/people_search.rb +++ b/app/domain/people_search.rb @@ -48,7 +48,7 @@ def pre_load(people) def in_associations(person) association_symbols.map do |sym| attribute_names = in_association(person, sym) - sym.to_s if attribute_names&.any? + sym.to_s if attribute_names.any? end.flatten end