File tree Expand file tree Collapse file tree 1 file changed +13
-9
lines changed Expand file tree Collapse file tree 1 file changed +13
-9
lines changed Original file line number Diff line number Diff line change @@ -169,15 +169,19 @@ class TableBody extends Component {
169
169
}
170
170
return ( result ) ;
171
171
} , this ) ;
172
+
173
+ var tableRowsOutput = tableRows ;
174
+
172
175
if ( tableRows . length === 0 && ! this . props . withoutNoDataText ) {
173
- tableRows . push (
174
- < TableRow key = '##table-empty##' >
175
- < td data-toggle = 'collapse'
176
- colSpan = { this . props . columns . length + ( isSelectRowDefined ? 1 : 0 ) }
177
- className = 'react-bs-table-no-data' >
178
- { this . props . noDataText || Const . NO_DATA_TEXT }
179
- </ td >
180
- </ TableRow >
176
+ tableRowsOutput = [
177
+ < TableRow key = '##table-empty##' >
178
+ < td data-toggle = 'collapse'
179
+ colSpan = { this . props . columns . length + ( isSelectRowDefined ? 1 : 0 ) }
180
+ className = 'react-bs-table-no-data' >
181
+ { this . props . noDataText || Const . NO_DATA_TEXT }
182
+ </ td >
183
+ </ TableRow >
184
+ ]
181
185
) ;
182
186
}
183
187
@@ -188,7 +192,7 @@ class TableBody extends Component {
188
192
< table className = { tableClasses } >
189
193
{ React . cloneElement ( tableHeader , { ref : 'header' } ) }
190
194
< tbody ref = 'tbody' >
191
- { tableRows }
195
+ { tableRowsOutput }
192
196
</ tbody >
193
197
</ table >
194
198
</ div >
You can’t perform that action at this time.
0 commit comments