From 41c3b7aa66438f8cd3902d1c042b4eb0f149bdab Mon Sep 17 00:00:00 2001 From: "gpt-engineer-app[bot]" <159125892+gpt-engineer-app[bot]@users.noreply.github.com> Date: Sat, 18 Apr 2026 16:02:49 +0000 Subject: [PATCH] Changes Co-authored-by: renee-png <262607627+renee-png@users.noreply.github.com> --- src/routes/contacts.index.tsx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/routes/contacts.index.tsx b/src/routes/contacts.index.tsx index 4f5a45d..fcd0c85 100644 --- a/src/routes/contacts.index.tsx +++ b/src/routes/contacts.index.tsx @@ -208,12 +208,12 @@ function ContactsIndex() { }); }; const toggleAllVisible = () => { - const visibleIds = filtered.map((r) => r.id); - const allSelected = visibleIds.every((id) => selected.has(id)); + const ids = visibleRows.map((r) => r.id); + const allSelected = ids.every((id) => selected.has(id)); setSelected((s) => { const next = new Set(s); - if (allSelected) visibleIds.forEach((id) => next.delete(id)); - else visibleIds.forEach((id) => next.add(id)); + if (allSelected) ids.forEach((id) => next.delete(id)); + else ids.forEach((id) => next.add(id)); return next; }); }; @@ -396,7 +396,7 @@ function ContactsIndex() { aria-label="Select all visible" /> - Select all {filtered.length} visible + Showing {visibleRows.length} of {filtered.length} )}