Refactor data assignment in GraphQL queries
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user