From 96367595aa2f015c3f91c5c901e6fa66fc97ed28 Mon Sep 17 00:00:00 2001 From: Gabriel Horner Date: Wed, 22 Apr 2026 13:24:29 -0400 Subject: [PATCH] fix(regression): bidirectional properties setup cdc1bc1d3290077985ee986d396590485f862a23 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 --- deps/db/src/logseq/db.cljs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/deps/db/src/logseq/db.cljs b/deps/db/src/logseq/db.cljs index a1245d0009..941f14c5d0 100644 --- a/deps/db/src/logseq/db.cljs +++ b/deps/db/src/logseq/db.cljs @@ -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))