composebox_typeahead: Always return list from get_sorted_filtered_items.

`source` is expecting a list so `false` doesn't make sense here.
It was working before because the code that calls `source` in
`bootstrap_typeahead` just does falsey checks.
This commit is contained in:
evykassirer
2024-04-18 14:03:39 -07:00
committed by Tim Abbott
parent 3a67b96966
commit 181e05ede7

View File

@@ -645,7 +645,7 @@ export function get_sorted_filtered_items(query, input_element) {
const big_results = get_candidates(query, input_element);
if (!big_results) {
return false;
return [];
}
const opts = get_stream_topic_data(input_element);