We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 28f31d8 commit 6b988d9Copy full SHA for 6b988d9
1 file changed
packages/ra-ui-materialui/src/list/ListActions.tsx
@@ -50,8 +50,8 @@ export const ListActions = (props: ListActionsProps) => {
50
className,
51
filters: filtersProp,
52
hasCreate: _,
53
- selectedIds = [],
54
- onUnselectItems = () => null,
+ selectedIds = defaultSelectedIds,
+ onUnselectItems = defaultOnUnselectItems,
55
...rest
56
} = props;
57
@@ -136,3 +136,6 @@ export interface ListActionsProps extends ToolbarProps {
136
showFilter?: (filterName: string, defaultValue: any) => void;
137
total?: number;
138
}
139
+
140
+const defaultSelectedIds = [];
141
+const defaultOnUnselectItems = () => null;
0 commit comments