mirror of https://github.com/logseq/logseq
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 typepull/10438/head
parent
c6565a51b3
commit
7ba09bdb69
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue