Skip to content

Commit

Permalink
Backport #9690
Browse files Browse the repository at this point in the history
  • Loading branch information
djhi committed Jun 24, 2024
1 parent f9252e7 commit 178c513
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 178c513

Please sign in to comment.