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 ff3e14a commit b2498daCopy full SHA for b2498da
1 file changed
packages/ra-ui-materialui/src/list/List.tsx
@@ -62,9 +62,9 @@ export const List = <RecordType extends RaRecord = any>({
62
disableAuthentication,
63
disableSyncWithLocation,
64
exporter,
65
- filter,
+ filter = {},
66
filterDefaultValues,
67
- perPage,
+ perPage = 10,
68
queryOptions,
69
resource,
70
sort,
@@ -121,8 +121,3 @@ List.propTypes = {
121
hasCreate: PropTypes.bool,
122
resource: PropTypes.string,
123
};
124
-
125
-List.defaultProps = {
126
- filter: {},
127
- perPage: 10,
128
-};
0 commit comments