From 2fcc4d8cd76480c134a69bba184408d92416eefa Mon Sep 17 00:00:00 2001 From: Drew Slobodnjak <60050885+drew08t@users.noreply.github.com> Date: Wed, 12 Jun 2024 13:54:39 -0700 Subject: [PATCH] Table: Fix row count during filter (#89004) * Table: Fix row count during filter * Fix pagination ranges --- packages/grafana-ui/src/components/Table/Table.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/grafana-ui/src/components/Table/Table.tsx b/packages/grafana-ui/src/components/Table/Table.tsx index e9c8c38ae0f..43acfb25fdb 100644 --- a/packages/grafana-ui/src/components/Table/Table.tsx +++ b/packages/grafana-ui/src/components/Table/Table.tsx @@ -215,7 +215,7 @@ export const Table = memo((props: Props) => { if (isCountRowsSet) { const footerItemsCountRows: FooterItem[] = []; - footerItemsCountRows[0] = headerGroups[0]?.headers[0]?.filteredRows.length.toString() ?? data.length.toString(); + footerItemsCountRows[0] = rows.length.toString() ?? data.length.toString(); setFooterItems(footerItemsCountRows); return; } @@ -287,7 +287,7 @@ export const Table = memo((props: Props) => { /> {isSmall ? null : (