From 2b343b893e05a278da1e66a4c83095545a564f8c Mon Sep 17 00:00:00 2001 From: ValdiANS Date: Tue, 3 Feb 2026 16:45:49 +0700 Subject: [PATCH] chore: remove unncessary data and fix pagination for single selected project flock kandang --- .../production-result/ProductionResultContent.tsx | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/components/pages/report/production-result/ProductionResultContent.tsx b/src/components/pages/report/production-result/ProductionResultContent.tsx index 28d334e8..d79d4c94 100644 --- a/src/components/pages/report/production-result/ProductionResultContent.tsx +++ b/src/components/pages/report/production-result/ProductionResultContent.tsx @@ -242,9 +242,6 @@ const ProductionResultContent = () => { console.error(error); toast.error('Gagal melakukan export laporan hasil produksi! Coba lagi.'); } - // await ProductionResultReportApi.exportProductionResultToPdf( - // projectFlockKandangs - // ); setIsLoadingExportingToPdf(false); }; @@ -268,7 +265,12 @@ const ProductionResultContent = () => { } setProjectFlockKandangs([projectFlockKandangResponse.data]); - setProjectFlockKandangMetadata(projectFlockKandangResponse.meta); + setProjectFlockKandangMetadata({ + page: 1, + limit: 10, + total_pages: 1, + total_results: 1, + }); setIsLoadingSearch(false); return; }