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:
dklimpel 2024-02-05 21:44:51 +01:00 committed by Manuel Stahl
parent 691969e1a1
commit 1eb787fd9b

View File

@ -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" });
}, },
} }