Skip to content

Commit ff3e14a

Browse files
committed
remove defaultProps in InfiniteList
1 parent f81e5a3 commit ff3e14a

1 file changed

Lines changed: 2 additions & 7 deletions

File tree

packages/ra-ui-materialui/src/list/InfiniteList.tsx

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,10 @@ export const InfiniteList = <RecordType extends RaRecord = any>({
6969
disableAuthentication,
7070
disableSyncWithLocation,
7171
exporter,
72-
filter,
72+
filter = {},
7373
filterDefaultValues,
7474
pagination = defaultPagination,
75-
perPage,
75+
perPage = 10,
7676
queryOptions,
7777
resource,
7878
sort,
@@ -134,8 +134,3 @@ InfiniteList.propTypes = {
134134
hasShow: PropTypes.bool,
135135
resource: PropTypes.string,
136136
};
137-
138-
InfiniteList.defaultProps = {
139-
filter: {},
140-
perPage: 10,
141-
};

0 commit comments

Comments
 (0)