diff --git a/packages/ra-ui-materialui/src/button/DeleteWithConfirmButton.tsx b/packages/ra-ui-materialui/src/button/DeleteWithConfirmButton.tsx index f165ae098f8..ec328c2655e 100644 --- a/packages/ra-ui-materialui/src/button/DeleteWithConfirmButton.tsx +++ b/packages/ra-ui-materialui/src/button/DeleteWithConfirmButton.tsx @@ -84,7 +84,7 @@ export const DeleteWithConfirmButton = ( true ), }), - id: record.id, + id: record?.id, ...translateOptions, }} onConfirm={handleDelete}