Skip to content
Permalink
Browse files

only show pagination row when table rows are at limit OR when in pagi…

…nated result already
  • Loading branch information...
dannyvankooten committed Nov 20, 2018
1 parent 019b7c9 commit 072addddafdadc3e8e156648c2767f36c724a845
Showing with 1 addition and 1 deletion.
  1. +1 −1 assets/src/js/components/Table.js
@@ -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>

0 comments on commit 072addd

Please sign in to comment.
You can’t perform that action at this time.