Golf around on identifyForm :).
This commit is contained in:
parent
3d2253d5d3
commit
969496b9f1
@ -324,10 +324,7 @@ identifyForm identVal form = \fragment -> do
|
|||||||
|
|
||||||
-- Check if we got its value back.
|
-- Check if we got its value back.
|
||||||
mp <- askParams
|
mp <- askParams
|
||||||
let missing =
|
let missing = (mp >>= Map.lookup identifyFormKey) /= Just [identVal]
|
||||||
case mp of
|
|
||||||
Just params -> Map.lookup identifyFormKey params /= Just [identVal]
|
|
||||||
Nothing -> True
|
|
||||||
|
|
||||||
-- Run the form proper (with our hidden <input>). If the
|
-- Run the form proper (with our hidden <input>). If the
|
||||||
-- data is missing, then do not provide any params to the
|
-- data is missing, then do not provide any params to the
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user