Compare commits

...

2 commits

Author SHA1 Message Date
bom
f147947558 Fix get-content-from-element 2023-10-06 11:57:15 +02:00
bom
966ecf1009 Fix get-content-from-element 2023-10-06 11:56:20 +02:00

View file

@ -28,10 +28,9 @@
(let [content (-> (get-element-by-id name) (let [content (-> (get-element-by-id name)
(.-value))] (.-value))]
(cond (cond
(and optional (some? deserializer)) (and optional (st/blank? content))
(when-not (st/blank? content) nil
(apply deserializer [content])) (some? deserializer)
(and (false? optional) (some? deserializer))
(apply deserializer [content]) (apply deserializer [content])
:else :else
content))) content)))