diff --git a/packages/ra-ui-materialui/src/layout/Loading.tsx b/packages/ra-ui-materialui/src/layout/Loading.tsx index 632a463d18a..ba08696ed98 100644 --- a/packages/ra-ui-materialui/src/layout/Loading.tsx +++ b/packages/ra-ui-materialui/src/layout/Loading.tsx @@ -21,8 +21,8 @@ export const Loading = (props: LoadingProps) => { className={LoadingClasses.icon} color="primary" /> -

{translate(loadingPrimary)}

-
{translate(loadingSecondary)}
+ {loadingPrimary ??

{translate(loadingPrimary)}

} + {loadingSecondary ??
{translate(loadingSecondary)}
} );