Skip to content

Commit a9ff078

Browse files
committed
update source propTypes to optional, because it's optional in interface
1 parent df75c63 commit a9ff078

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/ra-ui-materialui/src/field/ReferenceOneField.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ ReferenceOneField.propTypes = {
120120
label: fieldPropTypes.label,
121121
record: PropTypes.any,
122122
reference: PropTypes.string.isRequired,
123-
source: PropTypes.string.isRequired,
123+
source: PropTypes.string,
124124
target: PropTypes.string.isRequired,
125125
queryOptions: PropTypes.any,
126126
};

0 commit comments

Comments
 (0)