fix: has.*property rules incorrectly match blocks that had date properties

Adding a property to a block and then deleting it used to leave empty
values on all property types. Thx to the recent multi-select ux update
, this mainly just happens with the date type
pull/10438/head
Gabriel Horner 2023-09-26 08:44:32 -04:00
parent c6565a51b3
commit 7ba09bdb69
1 changed files with 6 additions and 2 deletions

View File

@ -154,7 +154,9 @@
[?prop-b :block/name ?prop-name-str]
[?prop-b :block/type "property"]
[?prop-b :block/uuid ?prop-uuid]
[(get ?bp ?prop-uuid)]]
[(get ?bp ?prop-uuid) ?v]
;; Some deleted properties leave #{} which this rule shouldn't match on
[(not= #{} ?v)]]
:page-property
'[;; Clause 1: Match non-ref values
@ -193,7 +195,9 @@
[?prop-b :block/name ?prop-name-str]
[?prop-b :block/type "property"]
[?prop-b :block/uuid ?prop-uuid]
[(get ?bp ?prop-uuid)]]
[(get ?bp ?prop-uuid) ?v]
;; Some deleted properties leave #{} which this rule shouldn't match on
[(not= #{} ?v)]]
:property
'[;; Clause 1: Match non-ref values