Browse Source

fix: query builder

Tienson Qin 6 months ago
parent
commit
c8bdcb10ea
1 changed files with 3 additions and 2 deletions
  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]