updates on the fix regarding the profitability page

This commit is contained in:
2026-06-17 11:14:21 +05:30
parent 3442e61bd0
commit c651282a30

View File

@@ -220,7 +220,7 @@ export default function ProfitabilityReport() {
hasNextPage, hasNextPage,
isFetchingNextPage isFetchingNextPage
} = useInfiniteQuery({ } = useInfiniteQuery({
queryKey: ['fetchdeliveries', appId, liveUserid, 'all', startdate, enddate, 50, '', 0, 0, 0], queryKey: ['fetchdeliveries', appId, liveUserid, 'all', startdate, enddate, 2000, '', 0, 0, 0],
queryFn: fetchDeliveries, queryFn: fetchDeliveries,
getNextPageParam: (lastPage) => lastPage.nextPage ?? undefined, getNextPageParam: (lastPage) => lastPage.nextPage ?? undefined,
refetchOnWindowFocus: false refetchOnWindowFocus: false