From ab570f70938aefb79aa3e3198c17f9c53f92977d Mon Sep 17 00:00:00 2001 From: Ryan Hopper-Lowe <46546486+ryanhopperlowe@users.noreply.github.com> Date: Tue, 11 Feb 2025 11:40:25 -0600 Subject: [PATCH] fix: showing 1/0 for pagination with no pages (#1714) --- ui/admin/app/components/composed/PaginationActions.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ui/admin/app/components/composed/PaginationActions.tsx b/ui/admin/app/components/composed/PaginationActions.tsx index 2d343540f..aa9a45a1e 100644 --- a/ui/admin/app/components/composed/PaginationActions.tsx +++ b/ui/admin/app/components/composed/PaginationActions.tsx @@ -20,6 +20,8 @@ export function PaginationActions({ const hasNextPage = nextPage != null; const hasPreviousPage = previousPage != null; + const currentPage = totalPages ? page + 1 : 0; + return (