Compare commits
No commits in common. "f14794755807868775266601188b8dce00960177" and "8189206ec692598999e8d1f91c40b45633250c58" have entirely different histories.
f147947558
...
8189206ec6
1 changed files with 4 additions and 3 deletions
|
@ -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)))
|
||||
|
|
Loading…
Reference in a new issue