Remove commented code.

This commit is contained in:
Dillon Kearns 2022-05-11 10:46:51 -07:00
parent 2f6a95f5d2
commit 06fcc706ff

View File

@ -2154,26 +2154,23 @@ submitHandlers :
-> (Model -> Result () decoded -> DataSource (Response data error))
-> Parser (DataSource (Response data error))
submitHandlers myForm toDataSource =
Request.oneOf
[ --apiHandler myForm
renderRequestParser myForm
|> Request.map
(\userOrErrors ->
userOrErrors
|> DataSource.andThen
(\result ->
case result of
Ok ( model, decoded ) ->
Ok decoded
|> toDataSource model
renderRequestParser myForm
|> Request.map
(\parsedResult ->
parsedResult
|> DataSource.andThen
(\result ->
case result of
Ok ( model, decoded ) ->
Ok decoded
|> toDataSource model
Err model ->
Err ()
|> toDataSource model
)
-- TODO allow customizing headers or status code, or not?
)
]
Err model ->
Err ()
|> toDataSource model
)
-- TODO allow customizing headers or status code, or not?
)
hasErrors_ : List ( String, RawFieldState error ) -> Bool