diff --git a/app/react/edge/edge-devices/WaitingRoomView/Datatable/TableActions.tsx b/app/react/edge/edge-devices/WaitingRoomView/Datatable/TableActions.tsx index 81f01af17..05ae11480 100644 --- a/app/react/edge/edge-devices/WaitingRoomView/Datatable/TableActions.tsx +++ b/app/react/edge/edge-devices/WaitingRoomView/Datatable/TableActions.tsx @@ -1,7 +1,7 @@ import { Check, CheckCircle, Trash2 } from 'lucide-react'; import { notifySuccess } from '@/portainer/services/notifications'; -import { useDeleteEnvironmentsMutation } from '@/react/portainer/environments/queries/useDeleteEnvironmentsMutation'; +import { useDeleteEnvironmentsMutation } from '@/react/portainer/environments/ListView/useDeleteEnvironmentsMutation'; import { Environment } from '@/react/portainer/environments/types'; import { withReactQuery } from '@/react-tools/withReactQuery'; import { useIsPureAdmin } from '@/react/hooks/useUser'; @@ -135,7 +135,7 @@ export function TableActions({ } removeMutation.mutate( - devices.map((d) => d.Id), + devices.map((d) => ({ id: d.Id, name: d.Name })), { onSuccess() { notifySuccess('Success', 'Edge devices were hidden successfully');