Fix idUlp type in filterData function

This commit is contained in:
Eko Haryadi
2024-02-23 17:07:59 +07:00
parent 29fff0c8a4
commit 81d77fc101
21 changed files with 213 additions and 202 deletions

View File

@@ -159,7 +159,7 @@ const GET_DATA = gql`
const { onResult, onError,loading,refetch } = useQuery(GET_DATA, {
dateFrom: new Date('2023-10-01').toISOString().slice(0, 10),
dateTo: new Date('2023-10-01').toISOString().slice(0, 10),
idUlp: '',
idUlp: 0,
idUid: 0,
idUp3: 0
})
@@ -170,7 +170,7 @@ const filterData = (params: any) => {
refetch({
dateFrom: dateValue[0] ? dateValue[0].split('-').reverse().join('-') : new Date().toISOString().slice(0, 10),
dateTo: dateValue[1] ? dateValue[1].split('-').reverse().join('-') : new Date().toISOString().slice(0, 10),
idUlp: idUlp ? idUlp.id : "",
idUlp: idUlp ? idUlp.id : 0,
idUid: uid ? uid.id :0,
idUp3: up3? up3.id:0})