Fix pagination not showing with 0 pagesLength

This commit is contained in:
Tanner Linsley
2016-11-02 15:07:20 -06:00
parent e922a43741
commit 1b4d8bd45f
3 changed files with 7 additions and 3 deletions
+1 -1
View File
@@ -13,5 +13,5 @@ Render(null, (
</Route>
</Router>
), {
useHash: true
useHash: false
})
+5 -1
View File
@@ -1,4 +1,8 @@
{
"name": "react-table",
"root": "dist"
"root": "dist",
"routes": [{
"src": "/**",
"dest": "index.html"
}]
}
+1 -1
View File
@@ -416,7 +416,7 @@ export default React.createClass({
})}
</TbodyComponent>
</TableComponent>
{this.props.showPagination && pagesLength > 1 && (
{this.props.showPagination && (
<Pagination
currentPage={currentPage}
pagesLength={pagesLength}