Refactor SearchableDropdownComponent and integrate remote data loading with TomSelect

This commit is contained in:
Ahmed Ejaz
2026-01-25 11:14:49 +05:00
parent 03b7c07495
commit 77fe1fa6f9
11 changed files with 577 additions and 326 deletions

View File

@@ -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