This commit is contained in:
Mega Yu
2026-03-20 16:22:10 +08:00
parent ba109dfa0d
commit a6ca67dab5
2 changed files with 6 additions and 5 deletions

View File

@@ -221,6 +221,7 @@
(extend-type Entity
cljs.core/IEncodeJS
(-clj->js [_this] nil) ; avoid `clj->js` overhead when entity was passed to rum components
(-key->js [_this] nil)
IAssociative
(-assoc [this k v]

View File

@@ -219,11 +219,11 @@
(if entity?
(let [property (d/entity db property-ident)]
(if (match-property-value-as-entity? (first value') property)
(boolean (empty? (set/intersection (set (map :block/uuid value')) match)))
(boolean (empty? (set/intersection (set (map db-property/property-value-content value'))
(set (map (comp db-property/property-value-content #(d/entity db [:block/uuid %]))
match)))))))
(boolean (empty? (set/intersection (set value') match)))))
(empty? (set/intersection (set (map :block/uuid value')) match))
(empty? (set/intersection (set (map db-property/property-value-content value'))
(set (map (comp db-property/property-value-content #(d/entity db [:block/uuid %]))
match))))))
(empty? (set/intersection (set value') match))))
:text-contains
(some (fn [v]