remove empty option at the start of default options

This commit is contained in:
simon lehericey 2024-09-30 15:36:21 +02:00
parent c638ac0261
commit fb66434a15
No known key found for this signature in database
GPG key ID: CDE670D827C7B3C5

View file

@ -778,9 +778,9 @@ class TypeDeChamp < ApplicationRecord
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