Refactor filterData function parameters
This commit is contained in:
@@ -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,
|
||||
|
Reference in New Issue
Block a user