mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-21 22:05:45 +00:00
refactor(FE-357): Use hppPerKandangExport instead of fetchAllExportData
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user