Stop showing all projects if the search query is empty.

This commit is contained in:
Eitaro Fukamachi 2017-09-21 19:18:37 +09:00
parent c1ebbb6559
commit 67e558c129
2 changed files with 1 additions and 2 deletions

View file

@ -44,7 +44,7 @@
:test #'eql
:key #'project-id
:from-end t)
(search-all-projects ql-dist-version)))
nil))
@export
(defun search-all-projects (&optional (ql-dist-version

View file

@ -120,7 +120,6 @@
@route GET "/search"
(defun search-page (&key |q|)
(let ((projects (search-projects |q| (preference "ql-dist-version"))))
(render #P"search.html"
(list
:projects (mapcar (lambda (project)