Co-authored-by: renee-png <262607627+renee-png@users.noreply.github.com>
This commit is contained in:
gpt-engineer-app[bot]
2026-04-18 03:54:06 +00:00
co-authored by renee-png
parent 584c0fd0f6
commit de1e0cd702
+1 -2
View File
@@ -70,7 +70,6 @@ function ContactsIndex() {
const term = q.trim().toLowerCase();
return rows.filter((r) => {
if (view === "archived" ? !r.archived_at : !!r.archived_at) return false;
if (category !== "all" && categoryOf(r.contact_type) !== category) return false;
if (typeFilter !== "all" && r.contact_type !== typeFilter) return false;
if (!term) return true;
return (
@@ -80,7 +79,7 @@ function ContactsIndex() {
(r.phone ?? "").toLowerCase().includes(term)
);
});
}, [rows, q, typeFilter, view, category]);
}, [rows, q, typeFilter, view]);
const grouped = useMemo(() => {
const map = new Map<string, ContactRow[]>();