Skip to content

Commit

Permalink
remove empty option at the start of default options
Browse files Browse the repository at this point in the history
  • Loading branch information
LeSim committed Sep 30, 2024
1 parent 9a4984a commit b5ff132
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/models/type_de_champ.rb
Original file line number Diff line number Diff line change
Expand Up @@ -778,9 +778,9 @@ def remove_drop_down_list
self.drop_down_options = nil
elsif !drop_down_options_changed?
self.drop_down_options = if linked_drop_down_list?
['', '--Fromage--', 'bleu de sassenage', 'picodon', '--Dessert--', 'éclair', 'tarte aux pommes']
['--Fromage--', 'bleu de sassenage', 'picodon', '--Dessert--', 'éclair', 'tarte aux pommes']
else
['', 'Premier choix', 'Deuxième choix']
['Premier choix', 'Deuxième choix']
end
end
end
Expand Down

0 comments on commit b5ff132

Please sign in to comment.