Replace "onFailure" with "onError"
https://marmelab.com/react-admin/Upgrade.html#onsuccess-and-onfailure-props-have-moved Change-Id: I30ae51e06df0293391988a7a84be9c6ef2b158b3
This commit is contained in:
parent
691969e1a1
commit
1eb787fd9b
@ -33,7 +33,7 @@ export const DeviceRemoveButton = props => {
|
|||||||
notify("resources.devices.action.erase.success");
|
notify("resources.devices.action.erase.success");
|
||||||
refresh();
|
refresh();
|
||||||
},
|
},
|
||||||
onFailure: () => {
|
onError: () => {
|
||||||
notify("resources.devices.action.erase.failure", { type: "error" });
|
notify("resources.devices.action.erase.failure", { type: "error" });
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user