Compare commits
2 commits
8189206ec6
...
f147947558
Author | SHA1 | Date | |
---|---|---|---|
f147947558 | |||
966ecf1009 |
1 changed files with 3 additions and 4 deletions
|
@ -28,10 +28,9 @@
|
|||
(let [content (-> (get-element-by-id name)
|
||||
(.-value))]
|
||||
(cond
|
||||
(and optional (some? deserializer))
|
||||
(when-not (st/blank? content)
|
||||
(apply deserializer [content]))
|
||||
(and (false? optional) (some? deserializer))
|
||||
(and optional (st/blank? content))
|
||||
nil
|
||||
(some? deserializer)
|
||||
(apply deserializer [content])
|
||||
:else
|
||||
content)))
|
||||
|
|
Loading…
Reference in a new issue