From a90b1e6203c777697929c07862bd429025441631 Mon Sep 17 00:00:00 2001 From: atrincas Date: Wed, 18 Dec 2024 17:11:42 +0100 Subject: [PATCH] Applied useTablePaginationReset to my custom projects page --- client/src/containers/my-projects/index.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/client/src/containers/my-projects/index.tsx b/client/src/containers/my-projects/index.tsx index f73f1531..2a7c6477 100644 --- a/client/src/containers/my-projects/index.tsx +++ b/client/src/containers/my-projects/index.tsx @@ -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 { @@ -65,6 +67,8 @@ export default function MyProjectsView() { pagination, }).queryKey; + useTablePaginationReset(filters.keyword, setPagination); + const { data } = client.customProjects.getCustomProjects.useQuery( queryKey, {