From 61b29534e58ee4830f5a616c4cbbafc60193d9f1 Mon Sep 17 00:00:00 2001 From: dklimpel <5740567+dklimpel@users.noreply.github.com> Date: Tue, 6 Feb 2024 10:48:17 +0100 Subject: [PATCH] fix destinations.js --- src/components/destinations.js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/components/destinations.js b/src/components/destinations.js index fc9c54a..777a1d5 100644 --- a/src/components/destinations.js +++ b/src/components/destinations.js @@ -53,7 +53,7 @@ export const DestinationReconnectButton = props => { const record = useRecordContext(); const refresh = useRefresh(); const notify = useNotify(); - const [handleReconnect, { isLoading }] = useDelete("destinations"); + const [handleReconnect, { isLoading }] = useDelete(); // Reconnect is not required if no error has occurred. (`failure_ts`) if (!record || !record.failure_ts) return null; @@ -63,7 +63,8 @@ export const DestinationReconnectButton = props => { e.stopPropagation(); handleReconnect( - { payload: { id: record.id } }, + "destinations", + { id: record.id }, { onSuccess: () => { notify("ra.notification.updated", { @@ -95,7 +96,7 @@ const DestinationShowActions = props => ( ); -const DestinationTitle = props => { +const DestinationTitle = () => { const record = useRecordContext(); const translate = useTranslate(); return ( @@ -105,7 +106,7 @@ const DestinationTitle = props => { ); }; -export const DestinationList = props => { +export const DestinationList = () => { return ( } @@ -128,7 +129,7 @@ export const DestinationList = props => { ); }; -export const DestinationShow = props => { +export const DestinationShow = () => { const translate = useTranslate(); return ( } title={}>