mirror of
https://github.com/logseq/logseq.git
synced 2026-04-24 22:25:01 +00:00
fix: bi-directional property should have classes specified
This commit is contained in:
4
deps/db/src/logseq/db.cljs
vendored
4
deps/db/src/logseq/db.cljs
vendored
@@ -705,7 +705,9 @@
|
||||
(and (or (db-property/user-property-namespace? attr-ns)
|
||||
(db-property/plugin-property? attr))
|
||||
(when-let [property (d/entity db attr)]
|
||||
(= :db.type/ref (:db/valueType property)))))))
|
||||
(and
|
||||
(seq (:logseq.property/classes property))
|
||||
(= :db.type/ref (:db/valueType property))))))))
|
||||
|
||||
(defn get-bidirectional-properties
|
||||
"Given a target entity id, returns a seq of maps with:
|
||||
|
||||
Reference in New Issue
Block a user