Skip to content

Commit 20ad4d3

Browse files
Merge pull request #277 from MITLibraries/use-172-no-results
Update conditional when rendering search tabs
2 parents 7104192 + 0fe51e9 commit 20ad4d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/views/search/_form.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,6 @@
3131
</aside>
3232
<% end %>
3333

34-
<%= render partial: 'search/source_tabs' if @results.present? %>
34+
<%= render partial: 'search/source_tabs' if params[:q].present? %>
3535

3636
<%= javascript_include_tag "search_form" %>

0 commit comments

Comments
 (0)