Include server errors in from ActionData in form error state.

This commit is contained in:
Dillon Kearns 2022-07-08 17:36:20 -07:00
parent d14688b4d8
commit 00e7acc0c7

View File

@ -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 =