Skip to content

Commit 6172cbe

Browse files
author
Dylan Huang
committed
Update filter functionality to use 'contains' operator instead of '==' for improved filtering in PivotTab component.
1 parent 688bf77 commit 6172cbe

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

vite-app/src/components/PivotTab.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,10 @@ const FilterSelector = ({
137137
availableKeys: string[];
138138
}) => {
139139
const addFilter = () => {
140-
onFiltersChange([...filters, { field: "", operator: "==", value: "" }]);
140+
onFiltersChange([
141+
...filters,
142+
{ field: "", operator: "contains", value: "" },
143+
]);
141144
};
142145

143146
const removeFilter = (index: number) => {

0 commit comments

Comments
 (0)