diff --git a/package.json b/package.json index 9676ba309..7e0182a25 100644 --- a/package.json +++ b/package.json @@ -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": [ diff --git a/src/components/TableBody.js b/src/components/TableBody.js index c83087945..ca3a40387 100644 --- a/src/components/TableBody.js +++ b/src/components/TableBody.js @@ -151,7 +151,8 @@ class TableBody extends React.Component { return ( - {tableRows && tableRows.length > 0 && + {tableRows && + tableRows.length > 0 && tableRows.map((data, rowIndex) => { const { data: row, dataIndex } = data; @@ -206,9 +207,8 @@ class TableBody extends React.Component { {this.isRowExpanded(dataIndex) && options.renderExpandableRow(row, { rowIndex, dataIndex })} ); - }) - } - {isLoading && + })} + {isLoading && ( - } - {!tableRows && !isLoading && + )} + {!tableRows && !isLoading && ( - } + )} ); }