diff --git a/deps/db/src/logseq/db/common/entity_plus.cljc b/deps/db/src/logseq/db/common/entity_plus.cljc index 54feb1add6..01f3d06cf5 100644 --- a/deps/db/src/logseq/db/common/entity_plus.cljc +++ b/deps/db/src/logseq/db/common/entity_plus.cljc @@ -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] diff --git a/deps/db/src/logseq/db/common/view.cljs b/deps/db/src/logseq/db/common/view.cljs index f398b139cd..67b0254c69 100644 --- a/deps/db/src/logseq/db/common/view.cljs +++ b/deps/db/src/logseq/db/common/view.cljs @@ -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]