Bläddra i källkod

fix: tags not displayed for blocks

Tienson Qin 1 år sedan
förälder
incheckning
16a39c8e7b

+ 2 - 1
deps/db/src/logseq/db/frontend/entity_plus.cljc

@@ -52,7 +52,8 @@
          default-value)))
 
      (or (get (.-kv e) k)
-         (if (and (db-property/property? k)
+         (if (and (not (db-property/db-attribute-properties k))
+                  (db-property/property? k)
                   (db-based-graph? (.-db e))
                   (not (:property/pair-property e))) ; property pair will be direct access
            (k (first (filter #(some? (k %)) (lookup-entity e :block/properties nil))))

+ 1 - 1
deps/db/src/logseq/db/frontend/property.cljs

@@ -208,7 +208,7 @@
     (and k-name
          (or (contains? logseq-property-namespaces k-name)
              (contains? user-property-namespaces k-name)
-             (and (keyword? k) (contains? #{:block/tags :block/alias} k))))))
+             (and (keyword? k) (contains? db-attribute-properties k))))))
 
 ;; Helper fns
 ;; ==========