From 0725de7045f01ce96f9bde752a107e60b643b336 Mon Sep 17 00:00:00 2001 From: Robin Steiner Date: Tue, 23 Jul 2024 14:16:57 +0200 Subject: [PATCH] Fix empty competence notes not opening --- app/controllers/people/competence_notes_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/people/competence_notes_controller.rb b/app/controllers/people/competence_notes_controller.rb index 0f0de154c..4e3a5e9f5 100644 --- a/app/controllers/people/competence_notes_controller.rb +++ b/app/controllers/people/competence_notes_controller.rb @@ -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