Refactor data assignment in GraphQL queries

This commit is contained in:
Dede Fuji Abdul
2024-03-01 09:01:35 +07:00
parent 298533eb87
commit 3efd257c70
9 changed files with 104 additions and 238 deletions

View File

@@ -179,9 +179,7 @@ const filterData = (params: any) => {
})
onResult((queryResult) => {
if (queryResult.data != undefined) {
queryResult.data.monalisaJumlahDurasiRptRctGangguan.forEach((item: any) => {
data.value = [...data.value, { ...item }]
})
data.value = queryResult.data.monalisaJumlahDurasiRptRctGangguan
}
console.log(queryResult.data)
console.log(queryResult.loading)