File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -187,16 +187,19 @@ class TableBody extends Component {
187
187
}
188
188
return ( result ) ;
189
189
} , this ) ;
190
+
191
+ let tableRowsOutput = tableRows ;
192
+
190
193
if ( tableRows . length === 0 && ! this . props . withoutNoDataText ) {
191
- tableRows . push (
194
+ tableRowsOutput = [
192
195
< TableRow key = '##table-empty##' >
193
196
< td data-toggle = 'collapse'
194
197
colSpan = { this . props . columns . length + ( isSelectRowDefined ? 1 : 0 ) }
195
198
className = 'react-bs-table-no-data' >
196
199
{ this . props . noDataText || Const . NO_DATA_TEXT }
197
200
</ td >
198
201
</ TableRow >
199
- ) ;
202
+ ] ;
200
203
}
201
204
202
205
return (
@@ -206,7 +209,7 @@ class TableBody extends Component {
206
209
< table className = { tableClasses } >
207
210
{ React . cloneElement ( tableHeader , { ref : 'header' } ) }
208
211
< tbody ref = 'tbody' >
209
- { tableRows }
212
+ { tableRowsOutput }
210
213
</ tbody >
211
214
</ table >
212
215
</ div >
You can’t perform that action at this time.
0 commit comments