Compare commits

..

No commits in common. "f14794755807868775266601188b8dce00960177" and "8189206ec692598999e8d1f91c40b45633250c58" have entirely different histories.

View file

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