Skip to content

Commit 661005f

Browse files
Remove conditional when rendering search tabs
** Why are these changes being introduced: Currently, if the initial DOM rendering is done in a condition where there are no search results, the UI doesn't not include tabs to change to a different set of results - which prevents the user from potentially finding results that were initially excluded. ** Relevant ticket(s): * https://mitlibraries.atlassian.net/browse/use-172 ** How does this address that need: This removes a conditional in the view logic that skipped tabs if there were no results - thus ensuring that tabs are always rendered. ** Document any side effects to this change: Hopefully none - need to confirm this with GeoData.
1 parent 77970ca commit 661005f

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' %>
3535

3636
<%= javascript_include_tag "search_form" %>

0 commit comments

Comments
 (0)