This commit is contained in:
Corban-Lee Jones 2024-07-31 11:53:41 +01:00
parent 85aac9818c
commit bfe72e1e67

View File

@ -400,6 +400,9 @@ function updateTablePagination(pageControlsId, currentPage, pageSize, totalItems
let startPage, endPage;
currentPage = parseInt(currentPage);
pageSize = parseInt(pageSize);
if (pages <= maxVisiblePages) {
// If total pages are less than or equal to max visible pages, show all
startPage = 1;