Refactor filterData function parameters

This commit is contained in:
probdg
2024-02-10 07:05:19 +07:00
parent eece7bcb92
commit b9732be2c9
21 changed files with 458 additions and 1102 deletions

View File

@@ -232,10 +232,9 @@ const { onResult, onError, loading, refetch } = useQuery(GET_GANGGUAN_MELAPOR_LE
idUp3: 0,
})
const filterData = (data: any) => {
const { minJmlLapor, maxJmlLapor, posko, uid, up3 } = data;
const dateValue = data.periode.split(' s/d ');
console.log(data)
const filterData = (params: any) => {
const { minJmlLapor, maxJmlLapor, posko, uid, up3 } = params;
const dateValue = params.periode.split(' s/d ');
refetch({
minJmlLapor: minJmlLapor ? minJmlLapor : 1,
maxJmlLapor: maxJmlLapor ? maxJmlLapor : 1,