Browse Source

fix: query builder showing ident names for properties

Now that idents are nanoid based, this is confusing ux
Gabriel Horner 1 year ago
parent
commit
694ffe1351
1 changed files with 4 additions and 1 deletions
  1. 4 1
      src/main/frontend/components/query/builder.cljs

+ 4 - 1
src/main/frontend/components/query/builder.cljs

@@ -364,7 +364,10 @@
         (str "#" (second (second clause))))
 
       (contains? #{:property :page-property} (keyword f))
-      (str (name (second clause)) ": "
+      (str (if (config/db-based-graph? (state/get-current-repo))
+             (:block/title (db/entity (second clause)))
+             (name (second clause)))
+           ": "
            (cond
              (and (vector? (last clause)) (= :page-ref (first (last clause))))
              (second (last clause))