Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
enrique-prado committed Oct 8, 2024
1 parent f47e9a0 commit 2038f49
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
4 changes: 0 additions & 4 deletions src/components/Table/Table.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -882,10 +882,6 @@ export const CustomBasicTableFilterDrawer = () => {
},
];
setFiltersToApply(filters);

// const theFilters = [{ id: "name", value: "Williams" }];
// setFiltersToApply(theFilters);

closeFilterDrawer();
};

Expand Down
3 changes: 2 additions & 1 deletion src/components/Table/Table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -206,11 +206,12 @@ export const Table = <T extends Record<string, any>>({
setAllFilters,
} = instance;

// biome-ignore lint/correctness/useExhaustiveDependencies: setAllFilters and filters don't need to be checked for perf reasons.
useEffect(() => {
logger.info(allFilters, filters);

setAllFilters(allFilters);
},[allFilters]);
}, [allFilters]);

const handleSearchWrapper = useMemo(() => {
if (handleSearch) {
Expand Down

0 comments on commit 2038f49

Please sign in to comment.