From c86651cfc5da45782a42ebabafa3ca7169993362 Mon Sep 17 00:00:00 2001 From: Eric Leroy-Terquem Date: Thu, 27 Jul 2023 14:35:01 +0200 Subject: [PATCH] refactor(routing): refactor options for select --- app/components/procedure/one_groupe_management_component.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/components/procedure/one_groupe_management_component.rb b/app/components/procedure/one_groupe_management_component.rb index bba162b9b..80ab87cd1 100644 --- a/app/components/procedure/one_groupe_management_component.rb +++ b/app/components/procedure/one_groupe_management_component.rb @@ -60,6 +60,6 @@ class Procedure::OneGroupeManagementComponent < ApplicationComponent return [] if targeted_champ.is_a?(Logic::Empty) targeted_champ .options(@revision.types_de_champ_public) - .map { |tdc| [tdc.first, constant(tdc.first).to_json] } + .map { |(label, value)| [label, constant(value).to_json] } end end