Skip to content
This repository has been archived by the owner on Jan 4, 2025. It is now read-only.

Commit

Permalink
Fixes #929
Browse files Browse the repository at this point in the history
  • Loading branch information
adamdriscoll committed Jul 2, 2019
1 parent 8841f42 commit 2a71df2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/UniversalDashboard.Materialize/Components/ud-grid.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,10 @@ class GridToolbar extends React.Component {
startPage = this.props.totalPages - 10;
}

for(var i = startPage; i < this.props.totalPages; i++) {
for(var i = startPage; i <= this.props.totalPages; i++) {

if (i <= 0) continue;

if (i > (startPage + 10)) {
break;
}
Expand Down

0 comments on commit 2a71df2

Please sign in to comment.