Skip to content

Commit 361c51e

Browse files
authored
Merge pull request #5927 from ValentinH/patch-2
ReferenceField: fix label proptype
2 parents ad664b2 + 0ca2123 commit 361c51e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ ReferenceField.propTypes = {
8989
className: PropTypes.string,
9090
cellClassName: PropTypes.string,
9191
headerClassName: PropTypes.string,
92-
label: PropTypes.string,
92+
label: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
9393
record: PropTypes.any,
9494
reference: PropTypes.string.isRequired,
9595
resource: PropTypes.string,

0 commit comments

Comments
 (0)