Skip to content

Commit cdca12e

Browse files
committed
Handle passing label=false in useResourceTranslation
1 parent 2be9066 commit cdca12e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/ra-core/src/i18n/useResourceTranslation.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export const useResourceTranslation = (
77
const { resourceI18nKey, baseI18nKey, userText, options } = params;
88
const translate = useTranslate();
99

10-
if (userText) {
10+
if (userText !== undefined) {
1111
if (typeof userText !== 'string') {
1212
return userText;
1313
}

0 commit comments

Comments
 (0)