mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Be sure that option key is a Symbol (it could be a String)
This commit is contained in:
@@ -4,7 +4,7 @@ class MultipleCheckedSelectComponent < ViewComponent::Base
|
||||
def initialize(name:, options:, selected:, filter_placeholder: "Filter options")
|
||||
@name = name
|
||||
@filter_placeholder = filter_placeholder
|
||||
@options = options
|
||||
@options = options.map { |option| [option[0], option[1].to_sym] }
|
||||
@selected = selected.map(&:to_sym)
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user