aboutsummaryrefslogtreecommitdiff
path: root/client/src/Util/Ajax.hs
diff options
context:
space:
mode:
authorJoris2018-10-30 20:33:17 +0100
committerJoris2018-10-30 20:33:17 +0100
commit8a28f608d8e08fba4bbe54b46804d261686c3c03 (patch)
tree0accedf149dc42461ec2662f190243f9a9d3888b /client/src/Util/Ajax.hs
parent50fb8fa48d1c4881da20b4ecf6d68a772301e713 (diff)
downloadbudget-8a28f608d8e08fba4bbe54b46804d261686c3c03.tar.gz
budget-8a28f608d8e08fba4bbe54b46804d261686c3c03.tar.bz2
budget-8a28f608d8e08fba4bbe54b46804d261686c3c03.zip
Upgrade reflex-platform
Diffstat (limited to 'client/src/Util/Ajax.hs')
-rw-r--r--client/src/Util/Ajax.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/client/src/Util/Ajax.hs b/client/src/Util/Ajax.hs
index 0d76638..7b65c52 100644
--- a/client/src/Util/Ajax.hs
+++ b/client/src/Util/Ajax.hs
@@ -31,7 +31,7 @@ delete
-> Event t ()
-> m (Event t (Either Text Text))
delete url fire = do
- response <- R.performRequestAsync (R.attachPromptlyDynWith (\u _ -> request "DELETE" u ()) url fire)
+ response <- R.performRequestAsync (R.attachWith (\u _ -> request "DELETE" u ()) (R.current url) fire)
return $ fmap getResult response
getJsonResult :: forall a. (FromJSON a) => XhrResponse -> Either Text a