From 1eb787fd9b17b17f5fc0716efbb56251b2297d3b Mon Sep 17 00:00:00 2001 From: dklimpel <5740567+dklimpel@users.noreply.github.com> Date: Mon, 5 Feb 2024 21:44:51 +0100 Subject: [PATCH] Replace "onFailure" with "onError" https://marmelab.com/react-admin/Upgrade.html#onsuccess-and-onfailure-props-have-moved Change-Id: I30ae51e06df0293391988a7a84be9c6ef2b158b3 --- src/components/devices.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/devices.js b/src/components/devices.js index 313bb47..c81a005 100644 --- a/src/components/devices.js +++ b/src/components/devices.js @@ -33,7 +33,7 @@ export const DeviceRemoveButton = props => { notify("resources.devices.action.erase.success"); refresh(); }, - onFailure: () => { + onError: () => { notify("resources.devices.action.erase.failure", { type: "error" }); }, }