fix: search input in All pages requires 2 chars

Fixes #3273
pull/3274/head^2
Andelf 2021-11-25 22:16:53 +08:00 committed by Tienson Qin
parent dc8972b08a
commit 1ef6741282
1 changed files with 1 additions and 2 deletions

View File

@ -748,8 +748,7 @@
search-key (fn [key]
(when-let [key (and key (string/trim key))]
(if (and (> (count key) 2)
(not (string/blank? key))
(if (and (not (string/blank? key))
(seq @*results))
(reset! *search-key key)
(reset! *search-key nil))))