Skip to content

Commit

Permalink
add nullsafe operator
Browse files Browse the repository at this point in the history
  • Loading branch information
kcinay055679 committed Aug 19, 2024
1 parent d3a7f14 commit f8b3e66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/domain/people_search.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit f8b3e66

Please sign in to comment.