refactor(FE-357): Use hppPerKandangExport instead of fetchAllExportData

This commit is contained in:
rstubryan
2025-12-17 14:54:28 +07:00
parent 80fd75dfc1
commit 6155929e14
@@ -411,7 +411,7 @@ const HppPerKandangTab = () => {
setIsExcelExportLoading(false);
}
}, [
fetchAllExportData,
hppPerKandangExport,
tableFilterState,
areaOptions,
locationOptions,
@@ -421,7 +421,7 @@ const HppPerKandangTab = () => {
const handleExportPDF = useCallback(async () => {
setIsPdfExportLoading(true);
try {
const allDataForExport = await fetchAllExportData();
const allDataForExport = await hppPerKandangExport();
if (
!allDataForExport ||
@@ -468,7 +468,7 @@ const HppPerKandangTab = () => {
setIsPdfExportLoading(false);
}
}, [
fetchAllExportData,
hppPerKandangExport,
tableFilterState,
areaOptions,
locationOptions,