Skip to content

Commit

Permalink
fix #1091
Browse files Browse the repository at this point in the history
  • Loading branch information
AllenFang committed Mar 27, 2017
1 parent 8407634 commit 52206d9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/TableBody.js
Original file line number Diff line number Diff line change
Expand Up @@ -189,10 +189,12 @@ class TableBody extends Component {
}, this);

if (tableRows.length === 0 && !this.props.withoutNoDataText) {
const colSpan = this.props.columns.filter(c => !c.hidden).length
+ (isSelectRowDefined ? 1 : 0);
tableRows = [
<TableRow key='##table-empty##'>
<td data-toggle='collapse'
colSpan={ this.props.columns.length + (isSelectRowDefined ? 1 : 0) }
colSpan={ colSpan }
className='react-bs-table-no-data'>
{ this.props.noDataText || Const.NO_DATA_TEXT }
</td>
Expand Down

0 comments on commit 52206d9

Please sign in to comment.