Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
search_suggestions: Remove length check for `candidate_topics`.
apoorvapendse786202929b87
diff --git a/web/src/search_suggestion.ts b/web/src/search_suggestion.tsindex 676bb7610ca..522e856a4d3 100644--- a/web/src/search_suggestion.ts+++ b/web/src/search_suggestion.ts@@ -555,10 +555,6 @@ function get_topic_suggestions(last: NarrowTerm, terms: NarrowTerm[]): Suggestioconst candidate_topics = stream_topic_history.get_recent_topic_names(subscription.stream_id);- if (!candidate_topics?.length) {- return [];- }-assert(guess !== undefined);const topics = get_topic_suggestions_from_candidates({candidate_topics, guess});