Fix optionalFieldHelper
This commit is contained in:
parent
2a71c7ab9b
commit
d6509266f4
@ -217,7 +217,7 @@ optionalFieldHelper (FieldProfile parse render mkXml w name' label tooltip) orig
|
||||
name <- maybe newFormIdent return name'
|
||||
let (res, val) =
|
||||
if null env
|
||||
then (FormMissing, maybe "" render orig)
|
||||
then (FormSuccess Nothing, maybe "" render orig)
|
||||
else case lookup name env of
|
||||
Nothing -> (FormSuccess Nothing, "")
|
||||
Just "" -> (FormSuccess Nothing, "")
|
||||
|
||||
Loading…
Reference in New Issue
Block a user