diff --git a/packages/ra-ui-materialui/src/input/CheckboxGroupInput.tsx b/packages/ra-ui-materialui/src/input/CheckboxGroupInput.tsx index fab7faa9248..c3dec2ec0d4 100644 --- a/packages/ra-ui-materialui/src/input/CheckboxGroupInput.tsx +++ b/packages/ra-ui-materialui/src/input/CheckboxGroupInput.tsx @@ -17,6 +17,7 @@ const sanitizeRestProps = ({ setFilter, setPagination, setSort, + loaded, ...rest }: any) => defaultSanitizeRestProps(rest); @@ -201,7 +202,7 @@ const CheckboxGroupInput: FunctionComponent< }; CheckboxGroupInput.propTypes = { - choices: PropTypes.arrayOf(PropTypes.object).isRequired, + choices: PropTypes.arrayOf(PropTypes.object), className: PropTypes.string, label: PropTypes.string, source: PropTypes.string,