Skip to content

Commit 66a5156

Browse files
Rollback FieldTitle error message
1 parent 05383e9 commit 66a5156

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/ra-core/src/util/FieldTitle.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ export const FieldTitle = (props: FieldTitleProps) => {
1515
const translateLabel = useTranslateLabel();
1616

1717
if (label === true) {
18-
throw new Error('Label parameter must be a ReactNode');
18+
throw new Error(
19+
'Label parameter must be a string, a ReactElement or false'
20+
);
1921
}
2022

2123
if (label === false || label === '') {

0 commit comments

Comments
 (0)