refactor(routing): refactor options for select
This commit is contained in:
parent
27d4be442f
commit
c86651cfc5
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue