mirror of
https://github.com/logseq/logseq.git
synced 2026-05-18 09:52:22 +00:00
fix(regression): bidirectional properties setup
cdc1bc1d32 made it such that two classes
had to enable bidirectional properties when only one class should be
needed. Using the example from #12296, the bug was requiring the user
to enable bidirectional on #Person and #Book when #Book is all that
should be needed
This commit is contained in:
6
deps/db/src/logseq/db.cljs
vendored
6
deps/db/src/logseq/db.cljs
vendored
@@ -832,11 +832,9 @@
|
||||
(d/q '[:find ?e ?a
|
||||
:in $ ?v
|
||||
:where
|
||||
[?c :logseq.property.class/enable-bidirectional? ?c-enable?]
|
||||
[(true? ?c-enable?)]
|
||||
[?ea :logseq.property/classes ?c]
|
||||
[?e ?a ?v]
|
||||
[?ea :db/ident ?a]
|
||||
[?e ?a ?v]]
|
||||
[?ea :logseq.property/classes ?c]]
|
||||
db
|
||||
v))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user