Skip to content

Commit

Permalink
fixing remove button logic
Browse files Browse the repository at this point in the history
  • Loading branch information
vwh committed Aug 14, 2024
1 parent 0b65458 commit d0b2266
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/components/database/upper-section.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@ export default function DBTable() {
setExpandPage,
filters,
setFilters,
setOrderBy,
setFiltersNeedClear
setOrderBy
} = useSQLiteStore();

const { page, setPage, rowsPerPage } = usePagination(rowPerPageOrAuto);
Expand Down Expand Up @@ -65,8 +64,6 @@ export default function DBTable() {
setQueryError(null);
setCustomQuery("");
setIsCustomQuery(false);
setFilters({});
setFiltersNeedClear(true);
}, [setIsCustomQuery, setQueryError, setCustomQuery]);

const handleResetPage = useCallback(() => {
Expand Down

0 comments on commit d0b2266

Please sign in to comment.