diff --git a/src/opnsense/www/js/opnsense_bootgrid.js b/src/opnsense/www/js/opnsense_bootgrid.js index b26ecd10f3..d2b3f530c2 100644 --- a/src/opnsense/www/js/opnsense_bootgrid.js +++ b/src/opnsense/www/js/opnsense_bootgrid.js @@ -1439,9 +1439,9 @@ class UIBootgrid { if (this.options.ajax) { totalRows = this.paginationTotal; + pageSize = this.curRowCount === true ? this.paginationTotal : this.curRowCount; } - pageSize = this.curRowCount === true ? this.paginationTotal : this.curRowCount; end = currentPage * pageSize; start = (totalRows === 0) ? 0 : ((currentPage - 1) * pageSize) + 1; end = (totalRows === 0 || end === -1 || end > totalRows) ? totalRows : end;