From 2f221e412cf03c6247cdb3f2f64486e00bdfb53a Mon Sep 17 00:00:00 2001 From: kosiakkatrina <54268893+kosiakkatrina@users.noreply.github.com> Date: Tue, 19 Nov 2024 11:06:37 +0000 Subject: [PATCH] Count unique attributes (#2791) --- app/helpers/form_page_error_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/helpers/form_page_error_helper.rb b/app/helpers/form_page_error_helper.rb index c2c13e0c6..2c90bfd2a 100644 --- a/app/helpers/form_page_error_helper.rb +++ b/app/helpers/form_page_error_helper.rb @@ -14,6 +14,6 @@ module FormPageErrorHelper end def all_questions_affected_by_errors(log) - log.errors.map(&:attribute) - [:base] + (log.errors.map(&:attribute) - [:base]).uniq end end