Skip to content

Commit 5468eae

Browse files
committed
Fix Datagrid when called standalone
1 parent b45bf6e commit 5468eae

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,12 +127,14 @@ const Datagrid: FC<DatagridProps> = React.forwardRef((props, ref) => {
127127

128128
const {
129129
basePath,
130+
currentSort,
130131
data,
131132
ids,
132133
loaded,
133134
onSelect,
134135
onToggleItem,
135136
selectedIds,
137+
setSort,
136138
total,
137139
} = useListContext(props);
138140
const version = useVersion();
@@ -229,10 +231,16 @@ const Datagrid: FC<DatagridProps> = React.forwardRef((props, ref) => {
229231
children,
230232
classes,
231233
className,
234+
currentSort,
235+
data,
232236
hasExpand: !!expand,
233237
hasBulkActions,
238+
ids,
234239
isRowSelectable,
240+
onSelect,
235241
resource,
242+
selectedIds,
243+
setSort,
236244
},
237245
children
238246
)}

0 commit comments

Comments
 (0)