浏览代码

fix: query builder

Tienson Qin 6 月之前
父节点
当前提交
c8bdcb10ea
共有 1 个文件被更改,包括 3 次插入2 次删除
  1. 3 2
      src/main/frontend/components/query/builder.cljs

+ 3 - 2
src/main/frontend/components/query/builder.cljs

@@ -174,12 +174,13 @@
   [*property *private-property? *find *tree opts loc values {:keys [db-graph?]}]
   (let [values' (cons {:label "Select all"
                        :value "Select all"}
-                      values)]
+                      values)
+        find' (rum/react *find)]
     (select values'
             (fn [{:keys [value]}]
               (let [k (cond
                         db-graph? (if @*private-property? :private-property :property)
-                        (= (rum/react *find) :page) :page-property
+                        (= find' :page) :page-property
                         :else :property)
                     x (if (= value "Select all")
                         [k @*property]