Skip to content

Commit

Permalink
Applied useTablePaginationReset to my custom projects page
Browse files Browse the repository at this point in the history
  • Loading branch information
atrincas authored and andresgnlez committed Dec 18, 2024
1 parent 3360d23 commit a90b1e6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions client/src/containers/my-projects/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ import { cn, getAuthHeader } from "@/lib/utils";

import { useMyProjectsFilters } from "@/app/my-projects/url-store";

import { useTablePaginationReset } from "@/hooks/use-table-pagination-reset";

import Search from "@/components/ui/search";
import { useSidebar } from "@/components/ui/sidebar";
import {
Expand Down Expand Up @@ -65,6 +67,8 @@ export default function MyProjectsView() {
pagination,
}).queryKey;

useTablePaginationReset(filters.keyword, setPagination);

const { data } = client.customProjects.getCustomProjects.useQuery(
queryKey,
{
Expand Down

0 comments on commit a90b1e6

Please sign in to comment.