fix(exams): default exam mode to Nothing
This commit is contained in:
parent
33ae83faa7
commit
4b459ea143
@ -1961,9 +1961,9 @@ customPresetForm :: forall a custom preset msg.
|
|||||||
-> Maybe (Maybe a)
|
-> Maybe (Maybe a)
|
||||||
-> AForm Handler (Maybe a)
|
-> AForm Handler (Maybe a)
|
||||||
customPresetForm cpL noneOption customOption toOption customForm fs mPrev
|
customPresetForm cpL noneOption customOption toOption customForm fs mPrev
|
||||||
= explainedMultiActionA actionMap options fs mPrev'
|
= explainedMultiActionA actionMap options fs $ Just mPrev'
|
||||||
where
|
where
|
||||||
mPrev' = flip fmap mPrev $ preview (_Just . cpL) >>> \case
|
mPrev' = case mPrev ^? _Just . _Just . cpL of
|
||||||
Nothing -> CPFONone
|
Nothing -> CPFONone
|
||||||
Just (Left _) -> CPFOCustom
|
Just (Left _) -> CPFOCustom
|
||||||
Just (Right p) -> CPFOPreset p
|
Just (Right p) -> CPFOPreset p
|
||||||
|
|||||||
Reference in New Issue
Block a user