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)
(.-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)))