From 2fb9341cecec6e7212a3f100bfa1caa1773017ed Mon Sep 17 00:00:00 2001 From: Jules Date: Wed, 31 Jul 2024 11:04:42 +0200 Subject: [PATCH] [sparkle] - fix: optimize table filtering logic - Removed redundant check for 'filter' when setting filter value for table columns --- sparkle/src/components/Table.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sparkle/src/components/Table.tsx b/sparkle/src/components/Table.tsx index 597772e610ccd..d86e7eb9bc649 100644 --- a/sparkle/src/components/Table.tsx +++ b/sparkle/src/components/Table.tsx @@ -53,7 +53,7 @@ export function Table({ }); useEffect(() => { - if (filter && filterColumn) { + if (filterColumn) { table.getColumn(filterColumn)?.setFilterValue(filter); } }, [filter, filterColumn]);