Skip to content

Commit

Permalink
Fix empty competence notes not opening
Browse files Browse the repository at this point in the history
  • Loading branch information
Robin481 committed Jul 23, 2024
1 parent 3ffa0fd commit 0725de7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/people/competence_notes_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ def self.model_class
end

def computed_size
[@person.competence_notes&.lines&.count, 10].max
[@person.competence_notes&.lines&.count, 10].compact.max
end
end

0 comments on commit 0725de7

Please sign in to comment.