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)
(.-value))]
(cond
(and optional (st/blank? content))
nil
(some? deserializer)
(and optional (some? deserializer))
(when-not (st/blank? content)
(apply deserializer [content]))
(and (false? optional) (some? deserializer))
(apply deserializer [content])
:else
content)))