From 4e5e64e6dee80acc8918e9665bdf0a15171abd9c Mon Sep 17 00:00:00 2001 From: Mohammed Nihal <57055998+nihal467@users.noreply.github.com> Date: Tue, 24 Dec 2024 16:09:46 +0530 Subject: [PATCH] resoruce board filter --- src/components/Kanban/Board.tsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/components/Kanban/Board.tsx b/src/components/Kanban/Board.tsx index d311cdd17bd..0023c494609 100644 --- a/src/components/Kanban/Board.tsx +++ b/src/components/Kanban/Board.tsx @@ -91,9 +91,8 @@ export function KanbanSection( const sectionRef = useRef(null); const defaultLimit = 14; const { t } = useTranslation(); - + const options = section.fetchOptions(section.id); const fetchPage = async ({ pageParam = 0 }) => { - const options = section.fetchOptions(section.id); try { const data = await callApi(options.route, { ...options.options, @@ -118,7 +117,7 @@ export function KanbanSection( isLoading, refetch, } = useInfiniteQuery({ - queryKey: [section.id], + queryKey: ["board", section.id, options.options?.query], queryFn: fetchPage, getNextPageParam: (lastPage, pages) => { if (!lastPage.next) return undefined;