Skip to content

Commit

Permalink
chore: set contains as the default global filter mode
Browse files Browse the repository at this point in the history
  • Loading branch information
RRanath authored and ccbc-service-account committed Feb 12, 2025
1 parent cf8493c commit b0e3dd9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/components/AnalystDashboard/AllDashboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ const AllDashboardTable: React.FC<Props> = ({ query }) => {
isCcbc: boolean;
rowId: any;
} | null>(null);
const globalFilterMode = useRef('fuzzy');
const globalFilterMode = useRef('contains');

const expandedRowsRef = useRef({});

Expand Down Expand Up @@ -545,7 +545,7 @@ const AllDashboardTable: React.FC<Props> = ({ 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);
Expand Down

0 comments on commit b0e3dd9

Please sign in to comment.