mirror of
https://github.com/logseq/logseq.git
synced 2026-05-24 04:34:14 +00:00
fix: history/scalar-value schema
wrong type and didn't handle false
This commit is contained in:
@@ -396,7 +396,7 @@
|
||||
[:logseq.property.history/block :int]
|
||||
[:logseq.property.history/property :int]
|
||||
[:logseq.property.history/ref-value {:optional true} :int]
|
||||
[:logseq.property.history/scalar-value {:optional true} :int]
|
||||
[:logseq.property.history/scalar-value {:optional true} :any]
|
||||
[:block/tx-id {:optional true} :int]])
|
||||
|
||||
(def property-history-block
|
||||
@@ -405,7 +405,8 @@
|
||||
[:fn {:error/message ":logseq.property.history/ref-value or :logseq.property.history/scalar-value required"
|
||||
:error/path [:logseq.property.history/ref-value]}
|
||||
(fn [m]
|
||||
(or (:logseq.property.history/ref-value m) (:logseq.property.history/scalar-value m)))]])
|
||||
(or (:logseq.property.history/ref-value m)
|
||||
(some? (:logseq.property.history/scalar-value m))))]])
|
||||
|
||||
(def closed-value-block*
|
||||
(vec
|
||||
|
||||
Reference in New Issue
Block a user