mirror of
https://github.com/zulip/zulip.git
synced 2025-11-17 12:21:58 +00:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user