From 82df5660f06b6561a7847a61114285db7179ad4e Mon Sep 17 00:00:00 2001 From: Savannah Smith Date: Sun, 17 Nov 2024 18:36:58 -0700 Subject: [PATCH] fix table page index --- web/src/components/Table.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/components/Table.tsx b/web/src/components/Table.tsx index 10bafbb..c5a6fad 100644 --- a/web/src/components/Table.tsx +++ b/web/src/components/Table.tsx @@ -118,7 +118,7 @@ export const Table: React.FC = ({ items, onRowClick }) => { -
Viewing {pageIndex * pageSize}-{(pageIndex + 1) * pageSize} Out Of {items.length} Items
+
Viewing {pageIndex * pageSize}-{Math.min((pageIndex + 1) * pageSize, items.length)} Out Of {items.length} Items