Skip to content

Commit 5a1ee3d

Browse files
committed
extract default options param
1 parent 5ecc5a7 commit 5a1ee3d

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

packages/ra-ui-materialui/src/input/SelectArrayInput.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ export const SelectArrayInput = (props: SelectArrayInputProps) => {
104104
onBlur,
105105
onChange,
106106
onCreate,
107-
options = {},
107+
options = defaultOptions,
108108
optionText = 'name',
109109
optionValue = 'id',
110110
parse,
@@ -455,3 +455,5 @@ const StyledFormControl = styled(FormControl, {
455455
marginRight: theme.spacing(0.5),
456456
},
457457
}));
458+
459+
const defaultOptions = {};

0 commit comments

Comments
 (0)