Skip to content

Commit f46f83c

Browse files
committed
fix(table-filter): use explicit close handler instead of toggle
1 parent 6c18471 commit f46f83c

File tree

1 file changed

+5
-1
lines changed
  • apps/sim/app/workspace/[workspaceId]/tables/[tableId]/components/table

1 file changed

+5
-1
lines changed

apps/sim/app/workspace/[workspaceId]/tables/[tableId]/components/table/table.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1467,6 +1467,10 @@ export function Table({
14671467
setFilterOpen((prev) => !prev)
14681468
}, [])
14691469

1470+
const handleFilterClose = useCallback(() => {
1471+
setFilterOpen(false)
1472+
}, [])
1473+
14701474
const columnOptions = useMemo<ColumnOption[]>(
14711475
() =>
14721476
displayColumns.map((col) => ({
@@ -1621,7 +1625,7 @@ export function Table({
16211625
columns={displayColumns}
16221626
filter={queryOptions.filter}
16231627
onApply={handleFilterApply}
1624-
onClose={handleFilterToggle}
1628+
onClose={handleFilterClose}
16251629
/>
16261630
)}
16271631
</>

0 commit comments

Comments
 (0)