Allow search endpoint to be used without q param (#14856)

If you didn't specify `q=`, this template would raise an error. For some
reason, I could only replicate this with the `?i=i` query param, though.
This commit is contained in:
Jamie Gaskins 2021-09-29 10:01:53 -05:00 committed by GitHub
parent 8cbbc222e9
commit 19905f44c7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -20,7 +20,7 @@
<div class="block s:flex items-center justify-between">
<h1 class="crayons-title hidden s:block pl-2">
Search results <%= "for #{params[:q]}" unless params[:q].empty? %>
Search results <%= "for #{params[:q]}" unless params[:q].blank? %>
</h1>
<nav id="sorting-option-tabs" aria-label="Search result sort options" class="-mx-3 m:mx-0">