fix: simple queries not working in config.edn

pull/2602/head^2
Tienson Qin 2021-08-11 11:08:12 +08:00
parent 216f8ed3c9
commit 125a47738d
1 changed files with 2 additions and 1 deletions

View File

@ -23,6 +23,7 @@
:else
nil)]
(let [repo (state/get-current-repo)]
(if (list? (:query query')) ; dsl query
(if (or (list? (:query query'))
(not= :find (first (:query query')))) ; dsl query
(dsl/custom-query repo query' query-opts )
(react/react-query repo query' query-opts))))))