Explorar o código

fix: remove outdated clauses for property values

This became outedated with to property values as refs
Gabriel Horner hai 1 ano
pai
achega
2d1073fa5b
Modificáronse 1 ficheiros con 2 adicións e 6 borrados
  1. 2 6
      deps/db/src/logseq/db/frontend/rules.cljc

+ 2 - 6
deps/db/src/logseq/db/frontend/rules.cljc

@@ -166,9 +166,7 @@
       [?p :block/name]
       [?p ?prop ?v]
       [?prop-e :db/ident ?prop]
-      [?prop-e :block/type "property"]
-      ;; Some deleted properties leave #{} which this rule shouldn't match on
-      [(not= #{} ?v)]]
+      [?prop-e :block/type "property"]]
 
     :page-property
     '[(page-property ?p ?prop ?val)
@@ -184,9 +182,7 @@
       [?b ?prop ?v]
       [(missing? $ ?b :block/name)]
       [?prop-e :db/ident ?prop]
-      [?prop-e :block/type "property"]
-      ;; Some deleted properties leave #{} which this rule shouldn't match on
-      [(not= #{} ?v)]]
+      [?prop-e :block/type "property"]]
 
     :property
     '[(property ?b ?prop ?val)