mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-04-08 07:46:59 +00:00
Refactor SearchableDropdownComponent and integrate remote data loading with TomSelect
This commit is contained in:
@@ -87,7 +87,7 @@ module Reports
|
||||
end
|
||||
|
||||
def format_results(items)
|
||||
items.map { |name, id| { id: id, text: name } }
|
||||
items.map { |label, value| { value:, label: } }
|
||||
end
|
||||
|
||||
def frontend_data
|
||||
|
||||
Reference in New Issue
Block a user