Skip to content

Commit

Permalink
Backport marmelab#9690
Browse files Browse the repository at this point in the history
  • Loading branch information
djhi authored and mjarosch committed Jul 1, 2024
1 parent fb1eeb0 commit a53fd69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/ra-ui-materialui/src/input/ReferenceInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ import { AutocompleteInput } from './AutocompleteInput';
export const ReferenceInput = (props: ReferenceInputProps) => {
const { children = defaultChildren, ...rest } = props;

if (props.validate) {
if (props.validate && process.env.NODE_ENV !== 'production') {
throw new Error(
'<ReferenceInput> does not accept a validate prop. Set the validate prop on the child instead.'
);
Expand Down

0 comments on commit a53fd69

Please sign in to comment.