mirror of https://github.com/zulip/zulip.git
search: Remove extra filter check before closing search.
Existing callsites to `close_search_bar_and_open_narrow_description` already do this filter check, so this is extra and unnecessary. Doing the check always before calling this function probably makes more sense given the name of the function sounding like it always takes action.
This commit is contained in:
parent
cb04ae1f95
commit
3e089c7ac6
|
@ -200,9 +200,6 @@ export function close_search_bar_and_open_narrow_description() {
|
|||
$("#searchbox_form .dropdown-menu").hide();
|
||||
|
||||
$("#search_query").val("");
|
||||
const filter = narrow_state.filter();
|
||||
if (!filter || filter.is_common_narrow()) {
|
||||
$(".navbar-search").removeClass("expanded");
|
||||
$("#message_view_header").removeClass("hidden");
|
||||
}
|
||||
$(".navbar-search").removeClass("expanded");
|
||||
$("#message_view_header").removeClass("hidden");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue