change(ui) - alert PUT to POST
This commit is contained in:
parent
a3fc6997d9
commit
810cba45ef
1 changed files with 1 additions and 1 deletions
|
|
@ -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()),
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue