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:
Gabriel Horner
2026-04-22 13:24:29 -04:00
parent 017aa9db43
commit 96367595aa

View File

@@ -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))