Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
search-suggestions: Rename suggestions_for_current_filter.
Lauryn Menard1706aa5c1ec0
diff --git a/web/src/search_suggestion.ts b/web/src/search_suggestion.tsindex c783525d93b..3b006fbe4b6 100644--- a/web/src/search_suggestion.ts+++ b/web/src/search_suggestion.ts@@ -861,7 +861,7 @@ function suggestion_search_string(suggestion_line: SuggestionLine): string {return search_strings.join(" ");}-function suggestions_for_current_filter(): SuggestionLine[] {+function suggestions_for_empty_search_query(): SuggestionLine[] {if (narrow_state.stream_id() && narrow_state.topic() !== undefined) {return [get_default_suggestion_line([@@ -902,8 +902,8 @@ class Attacher {// of the list.if (search_query_is_empty && this.add_current_filter) {this.add_current_filter = false;- for (const current_filter_line of suggestions_for_current_filter()) {- this.push(current_filter_line);+ for (const suggestion of suggestions_for_empty_search_query()) {+ this.push(suggestion);}}}