mirror of
https://github.com/logseq/logseq.git
synced 2026-04-30 17:06:23 +00:00
fix: incorrect return values when edn parsing fails for queries
safe-read-string assumed all parsed strings were maps by returning {}
on failure. This could lead to subtle bugs in our new query layer and
other non-map features like hiccup
This commit is contained in:
@@ -105,7 +105,7 @@
|
||||
"web application/logseq"))))
|
||||
blocks-str (when blocks-blob (.text blocks-blob))]
|
||||
(when blocks-str
|
||||
(common-util/safe-read-string blocks-str))))
|
||||
(common-util/safe-read-map-string blocks-str))))
|
||||
|
||||
(defn- markdown-blocks?
|
||||
[text]
|
||||
|
||||
Reference in New Issue
Block a user