fix: hlint
This commit is contained in:
parent
d87e8b7142
commit
908e6def80
@ -52,7 +52,7 @@ bearerTokenForm = do
|
||||
-> Form (Route UniWorX, Value)
|
||||
miForm nudge mode csrf = do
|
||||
(routeRes, routeView) <- mpreq routeField ("" & addName (nudge "route")) (mode ^? _Right . _1)
|
||||
(restrRes, restrView) <- mpreq (checkMap (left Text.pack . Aeson.eitherDecode . encodeUtf8 . fromStrict . unTextarea) (Textarea . toStrict . decodeUtf8 . Aeson.encodePretty) $ textareaField) ("" & addName (nudge "restr")) (mode ^? _Right . _2)
|
||||
(restrRes, restrView) <- mpreq (checkMap (left Text.pack . Aeson.eitherDecode . encodeUtf8 . fromStrict . unTextarea) (Textarea . toStrict . decodeUtf8 . Aeson.encodePretty) textareaField) ("" & addName (nudge "restr")) (mode ^? _Right . _2)
|
||||
|
||||
return ((,) <$> routeRes <*> restrRes, case mode of
|
||||
Left btn -> $(widgetFile "widgets/massinput/token-restrictions/add")
|
||||
|
||||
Loading…
Reference in New Issue
Block a user