Skip to content

Commit

Permalink
Reset remote state on edit in async form
Browse files Browse the repository at this point in the history
  • Loading branch information
jhbertra committed Jan 18, 2022
1 parent 8551d5f commit 3e3a4fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion marlowe-dashboard-client/src/Halogen/Form.purs
Expand Up @@ -129,7 +129,7 @@ mkAsyncForm { validator, render } =
pure newRemote
r -> pure r
mapInput (flip AsyncInput remote')
$ Tuple (toMaybe remote') <<< mapFormHTML (flip AsyncInput remote')
$ Tuple (toMaybe remote') <<< mapFormHTML (flip AsyncInput NotAsked)
<$> render input remote'

-- | Combine two forms that operate on an produce tuples of each form's input
Expand Down

0 comments on commit 3e3a4fd

Please sign in to comment.