Skip to content

Commit

Permalink
Merge pull request #3602 from marmelab/fix-select-array-input
Browse files Browse the repository at this point in the history
[RFR] Fix SelectArrayInput Override Choices of  ReferenceArrayInput
  • Loading branch information
fzaninotto authored Aug 26, 2019
2 parents f16a4dc + b263e42 commit db2e7f7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/ra-ui-materialui/src/input/SelectArrayInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ const useStyles = makeStyles(theme => ({
const SelectArrayInput: FunctionComponent<
InputWithOptionsProps & InputProps<SelectProps> & FormControlProps
> = ({
choices,
choices = [],
classes: classesOverride,
className,
label,
Expand Down Expand Up @@ -274,7 +274,6 @@ SelectArrayInput.propTypes = {
};

SelectArrayInput.defaultProps = {
choices: [],
options: {},
optionText: 'name',
optionValue: 'id',
Expand Down

0 comments on commit db2e7f7

Please sign in to comment.