Skip to content

Commit

Permalink
[sparkle] - fix: optimize table filtering logic
Browse files Browse the repository at this point in the history
 - Removed redundant check for 'filter' when setting filter value for table columns
  • Loading branch information
Jules committed Jul 31, 2024
1 parent 4a54541 commit 2fb9341
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sparkle/src/components/Table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export function Table<TData, TValue>({
});

useEffect(() => {
if (filter && filterColumn) {
if (filterColumn) {
table.getColumn(filterColumn)?.setFilterValue(filter);
}
}, [filter, filterColumn]);
Expand Down

0 comments on commit 2fb9341

Please sign in to comment.