Skip to content

Commit

Permalink
update package version, bump up
Browse files Browse the repository at this point in the history
  • Loading branch information
hanswang committed Jul 26, 2019
1 parent bd92307 commit 1bdc250
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-datatable-mui",
"version": "0.1.0",
"version": "0.1.1",
"description": "Datatable for React using Material-UI",
"main": "dist/index.js",
"files": [
Expand Down
14 changes: 7 additions & 7 deletions src/components/TableBody.js
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,8 @@ class TableBody extends React.Component {

return (
<MuiTableBody>
{tableRows && tableRows.length > 0 &&
{tableRows &&
tableRows.length > 0 &&
tableRows.map((data, rowIndex) => {
const { data: row, dataIndex } = data;

Expand Down Expand Up @@ -206,9 +207,8 @@ class TableBody extends React.Component {
{this.isRowExpanded(dataIndex) && options.renderExpandableRow(row, { rowIndex, dataIndex })}
</React.Fragment>
);
})
}
{isLoading &&
})}
{isLoading && (
<TableBodyRow options={options}>
<TableBodyCell
colSpan={options.selectableRows !== 'none' || options.expandableRows ? visibleColCnt + 1 : visibleColCnt}
Expand All @@ -220,8 +220,8 @@ class TableBody extends React.Component {
</Typography>
</TableBodyCell>
</TableBodyRow>
}
{!tableRows && !isLoading &&
)}
{!tableRows && !isLoading && (
<TableBodyRow options={options}>
<TableBodyCell
colSpan={options.selectableRows !== 'none' || options.expandableRows ? visibleColCnt + 1 : visibleColCnt}
Expand All @@ -233,7 +233,7 @@ class TableBody extends React.Component {
</Typography>
</TableBodyCell>
</TableBodyRow>
}
)}
</MuiTableBody>
);
}
Expand Down

0 comments on commit 1bdc250

Please sign in to comment.