mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-25 15:55:48 +00:00
refactor(FE-357): Use hppPerKandangExport instead of fetchAllExportData
This commit is contained in:
@@ -411,7 +411,7 @@ const HppPerKandangTab = () => {
|
|||||||
setIsExcelExportLoading(false);
|
setIsExcelExportLoading(false);
|
||||||
}
|
}
|
||||||
}, [
|
}, [
|
||||||
fetchAllExportData,
|
hppPerKandangExport,
|
||||||
tableFilterState,
|
tableFilterState,
|
||||||
areaOptions,
|
areaOptions,
|
||||||
locationOptions,
|
locationOptions,
|
||||||
@@ -421,7 +421,7 @@ const HppPerKandangTab = () => {
|
|||||||
const handleExportPDF = useCallback(async () => {
|
const handleExportPDF = useCallback(async () => {
|
||||||
setIsPdfExportLoading(true);
|
setIsPdfExportLoading(true);
|
||||||
try {
|
try {
|
||||||
const allDataForExport = await fetchAllExportData();
|
const allDataForExport = await hppPerKandangExport();
|
||||||
|
|
||||||
if (
|
if (
|
||||||
!allDataForExport ||
|
!allDataForExport ||
|
||||||
@@ -468,7 +468,7 @@ const HppPerKandangTab = () => {
|
|||||||
setIsPdfExportLoading(false);
|
setIsPdfExportLoading(false);
|
||||||
}
|
}
|
||||||
}, [
|
}, [
|
||||||
fetchAllExportData,
|
hppPerKandangExport,
|
||||||
tableFilterState,
|
tableFilterState,
|
||||||
areaOptions,
|
areaOptions,
|
||||||
locationOptions,
|
locationOptions,
|
||||||
|
|||||||
Reference in New Issue
Block a user