only show pagination row when table rows are at limit OR when in paginated result already

This commit is contained in:
Danny van Kooten 2018-11-20 15:10:27 +01:00
parent 019b7c9743
commit 072addddaf
1 changed files with 1 additions and 1 deletions

View File

@ -103,7 +103,7 @@ class Table extends Component {
)}) : <div class="table-row"><div class="cell main-col">Nothing here, yet.</div></div>;
// pagination row: only show when total # of results doesn't fit in one table page
const pagination = state.total > state.limit ? (
const pagination = tableRows.length == state.limit || state.offset >= state.limit ? (
<div class="row pag">
<a href="javascript:void(0)" onClick={this.paginatePrev} class="back"></a>
<a href="javascript:void(0)" onClick={this.paginateNext} class="next right"></a>