mirror of
https://github.com/dillonkearns/elm-pages-v3-beta.git
synced 2024-11-28 23:12:22 +03:00
Include server errors in from ActionData in form error state.
This commit is contained in:
parent
d14688b4d8
commit
00e7acc0c7
@ -1160,7 +1160,19 @@ renderStyledHelperNew attrs maybe options formState data (Form fieldDefinitions
|
||||
|
||||
merged : Validation error parsed named
|
||||
merged =
|
||||
mergeResults parsed
|
||||
mergeResults
|
||||
{ parsed
|
||||
| result =
|
||||
parsed.result
|
||||
|> Tuple.mapSecond
|
||||
(\errors1 ->
|
||||
mergeErrors errors1
|
||||
(maybe
|
||||
|> Maybe.map .errors
|
||||
|> Maybe.withDefault Dict.empty
|
||||
)
|
||||
)
|
||||
}
|
||||
|
||||
thisFormState : Form.FormState
|
||||
thisFormState =
|
||||
|
Loading…
Reference in New Issue
Block a user