Skip to content

Commit a8d2faf

Browse files
committed
Fix for wrong items per page calculation for the view
1 parent a1f2cc9 commit a8d2faf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Web/WebMVC/Controllers/CatalogController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public async Task<IActionResult> Index(int? BrandFilterApplied, int? TypesFilter
3333
PaginationInfo = new PaginationInfo()
3434
{
3535
ActualPage = page ?? 0,
36-
ItemsPerPage = (catalog.Count < itemsPage) ? catalog.Count : itemsPage,
36+
ItemsPerPage = catalog.Data.Count,
3737
TotalItems = catalog.Count,
3838
TotalPages = int.Parse(Math.Ceiling(((decimal)catalog.Count / itemsPage)).ToString())
3939
}

0 commit comments

Comments
 (0)