enhance: reduce search items

This commit is contained in:
Tienson Qin
2022-11-29 17:34:24 +08:00
parent d4c8cdadda
commit 4167c7b5cb

View File

@@ -32,10 +32,10 @@
([q]
(search (state/get-current-repo) q))
([repo q]
(search repo q {:limit 20}))
(search repo q {:limit 10}))
([repo q {:keys [page-db-id limit more?]
:or {page-db-id nil
limit 20}
limit 10}
:as opts}]
(when-not (string/blank? q)
(let [page-db-id (if (string? page-db-id)