diff --git a/app/views/search/_form.html.erb b/app/views/search/_form.html.erb index ae29e6b0..b4d12768 100644 --- a/app/views/search/_form.html.erb +++ b/app/views/search/_form.html.erb @@ -31,6 +31,6 @@ <% end %> -<%= render partial: 'search/source_tabs' if @results.present? %> +<%= render partial: 'search/source_tabs' if params[:q].present? %> <%= javascript_include_tag "search_form" %>