enhance: reduce search items

pull/7516/head
Tienson Qin 2022-11-29 17:34:24 +08:00
parent d4c8cdadda
commit 4167c7b5cb
1 changed files with 2 additions and 2 deletions

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)