Skip to content

Commit 63eb7ca

Browse files
committed
make perPage propTypes optional, because it's optional in interfaces
1 parent 93c6cec commit 63eb7ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ InfiniteList.propTypes = {
119119
]),
120120
// @ts-ignore-line
121121
pagination: PropTypes.oneOfType([PropTypes.element, PropTypes.bool]),
122-
perPage: PropTypes.number.isRequired,
122+
perPage: PropTypes.number,
123123
//@ts-ignore-line
124124
sort: PropTypes.shape({
125125
field: PropTypes.string,

0 commit comments

Comments
 (0)