mirror of
https://github.com/vale981/quickdocs-server
synced 2025-03-04 08:41:40 -05:00
Stop showing all projects if the search query is empty.
This commit is contained in:
parent
c1ebbb6559
commit
67e558c129
2 changed files with 1 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue