Changes
Co-authored-by: renee-png <262607627+renee-png@users.noreply.github.com>
This commit is contained in:
co-authored by
renee-png
parent
584c0fd0f6
commit
de1e0cd702
@@ -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[]>();
|
||||
|
||||
Reference in New Issue
Block a user