Skip to content

Commit abf6612

Browse files
committed
fix the errors that not pass gulp check
1 parent a84ceb1 commit abf6612

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed

src/TableBody.js

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -170,19 +170,18 @@ class TableBody extends Component {
170170
return (result);
171171
}, this);
172172

173-
var tableRowsOutput = tableRows;
174-
173+
let tableRowsOutput = tableRows;
174+
175175
if (tableRows.length === 0 && !this.props.withoutNoDataText) {
176176
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-
]
185-
);
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+
];
186185
}
187186

188187
return (

0 commit comments

Comments
 (0)