mirror of
https://github.com/status-im/pluto.git
synced 2025-02-24 08:28:15 +00:00
fix view/parse of nil value on error
Signed-off-by: Julien Eluard <julien.eluard@gmail.com>
This commit is contained in:
parent
aa755e3c23
commit
f1e06113ab
@ -111,8 +111,10 @@
|
||||
(defn parse [ctx ext o]
|
||||
(if (list? o) ;; TODO introduce a block? fn
|
||||
(let [{:keys [data errors] :as m} (blocks/parse ctx ext o)]
|
||||
;; TODO handle nil data case
|
||||
(errors/merge-errors (parse ctx ext data) errors))
|
||||
(errors/merge-errors
|
||||
(when data
|
||||
(parse ctx ext data))
|
||||
errors))
|
||||
(parse-hiccup-element ctx ext o)))
|
||||
|
||||
(defn- inject-properties [m properties]
|
||||
|
Loading…
x
Reference in New Issue
Block a user