Skip to content

Commit

Permalink
fix: clear filter function
Browse files Browse the repository at this point in the history
  • Loading branch information
Dragonprod committed Dec 18, 2023
1 parent 76e5a95 commit 384741d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/table/DataTableFacetedFilter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export function DataTableFacetedFilter<TData, TValue>({
const facets = column?.getFacetedUniqueValues()
const selectedValues = React.useMemo(() => {
return new Set(column?.getFilterValue() as string[]);
}, [column]);
}, [column?.getFilterValue()]);

React.useEffect(() => {
setSelectedOptions?.(Array.from(selectedValues))
Expand Down

0 comments on commit 384741d

Please sign in to comment.