Update Export

This commit is contained in:
ivan-sim
2024-01-16 17:20:36 +07:00
parent 9169c06897
commit 96381e4a82
2 changed files with 13 additions and 8 deletions

View File

@@ -192,10 +192,11 @@ export default function List() {
/* -------------------------------- handle export --------------------------- */
const handleExportReport = async () => {
var filter = Object.fromEntries([...searchParams.entries()]);
await axios
.get(corporateValue + '/claims/exportAlrmCenter/'+startDateValue+'/'+endDateValue, { params: filter })
.get(corporateValue + '/claims/exportAlrmCenter/'+(startDateValue ? startDateValue : 'all')+'/'+(endDateValue ? endDateValue : 'all'), { params: filter })
.then((res) => {
enqueueSnackbar('Data berhasil di Export', {
variant: 'success',