From 810cba45ef09970b6965fb88556328f4a4e54f3f Mon Sep 17 00:00:00 2001 From: Shekar Siri Date: Wed, 2 Nov 2022 11:19:34 +0100 Subject: [PATCH] change(ui) - alert PUT to POST --- frontend/app/duck/alerts.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/app/duck/alerts.js b/frontend/app/duck/alerts.js index dcc3c1633..6591ae7e7 100644 --- a/frontend/app/duck/alerts.js +++ b/frontend/app/duck/alerts.js @@ -41,7 +41,7 @@ const reducer = (state = initialState, action = {}) => { export function save(instance) { return { types: crudDuck.actionTypes.SAVE.toArray(), - call: client => client.put( instance[idKey] ? `/alerts/${ instance[idKey] }` : '/alerts', instance.toData()), + call: client => client.post( instance[idKey] ? `/alerts/${ instance[idKey] }` : '/alerts', instance.toData()), }; }