Skip to content

Commit 0e85bf1

Browse files
authored
Merge pull request #7828 from marmelab/7814-datagrid-expand
Fix Datagrid with expand element expands ALL rows when used as a child of ArrayField
2 parents 70a13b7 + 2a2341c commit 0e85bf1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/ra-ui-materialui/src/list/datagrid/DatagridBody.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ const DatagridBody: FC<DatagridBodyProps> = React.forwardRef(
4444
expand,
4545
hasBulkActions: hasBulkActions && !!selectedIds,
4646
hover,
47-
id: record.id,
47+
id: record.id ?? `row${rowIndex}`,
4848
key: record.id ?? `row${rowIndex}`,
4949
onToggleItem,
5050
record,

0 commit comments

Comments
 (0)