@@ -910,34 +910,30 @@ export const TableBody = React.memo(
910910 } ) ;
911911
912912 const createEmptyContent = ( ) => {
913- if ( ! props . loading ) {
914- const colSpan = getColumnsLength ( ) ;
915- const content = ObjectUtils . getJSXElement ( props . emptyMessage , { props : props . tableProps , frozen : props . frozenRow } ) || localeOption ( 'emptyMessage' ) ;
916- const emptyMessageProps = mergeProps (
917- {
918- className : cx ( 'emptyMessage' ) ,
919- role : 'row'
920- } ,
921- ptm ( 'emptyMessage' )
922- ) ;
923-
924- const bodyCellProps = mergeProps (
925- {
926- colSpan,
927- role : 'cell'
928- } ,
929- getColumnPTOptions ( 'root' ) ,
930- getColumnPTOptions ( 'bodyCell' )
931- ) ;
913+ const colSpan = getColumnsLength ( ) ;
914+ const content = ObjectUtils . getJSXElement ( props . emptyMessage , { props : props . tableProps , frozen : props . frozenRow } ) || localeOption ( 'emptyMessage' ) ;
915+ const emptyMessageProps = mergeProps (
916+ {
917+ className : cx ( 'emptyMessage' ) ,
918+ role : 'row'
919+ } ,
920+ ptm ( 'emptyMessage' )
921+ ) ;
932922
933- return (
934- < tr { ...emptyMessageProps } >
935- < td { ...bodyCellProps } > { content } </ td >
936- </ tr >
937- ) ;
938- }
923+ const bodyCellProps = mergeProps (
924+ {
925+ colSpan,
926+ role : 'cell'
927+ } ,
928+ getColumnPTOptions ( 'root' ) ,
929+ getColumnPTOptions ( 'bodyCell' )
930+ ) ;
939931
940- return null ;
932+ return (
933+ < tr { ...emptyMessageProps } >
934+ < td { ...bodyCellProps } > { content } </ td >
935+ </ tr >
936+ ) ;
941937 } ;
942938
943939 const createGroupHeader = ( rowData , rowIndex , expanded , colSpan ) => {
0 commit comments