From 8510ffff81af3fd38cd0e8a95ea862a6c36de6d2 Mon Sep 17 00:00:00 2001 From: R Ranathunga Date: Mon, 10 Feb 2025 09:48:58 -0800 Subject: [PATCH] chore: set contains as the default global filter mode --- app/components/AnalystDashboard/AllDashboard.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/components/AnalystDashboard/AllDashboard.tsx b/app/components/AnalystDashboard/AllDashboard.tsx index e26b298b8f..14403f3a5a 100644 --- a/app/components/AnalystDashboard/AllDashboard.tsx +++ b/app/components/AnalystDashboard/AllDashboard.tsx @@ -293,7 +293,7 @@ const AllDashboardTable: React.FC = ({ query }) => { isCcbc: boolean; rowId: any; } | null>(null); - const globalFilterMode = useRef('fuzzy'); + const globalFilterMode = useRef('contains'); const expandedRowsRef = useRef({}); @@ -545,7 +545,7 @@ const AllDashboardTable: React.FC = ({ query }) => { if (visibility === false) return false; if (!filterValue) return true; if (row.getValue(id) === null) return false; - const filterMode = globalFilterMode.current || 'fuzzy'; + const filterMode = globalFilterMode.current || 'contains'; let defaultMatch = false; if (filterMode === 'fuzzy') { defaultMatch = MRT_FilterFns.fuzzy(row, id, filterValue, filterMeta);