tambah versi dan perbaikan router get dari API
This commit is contained in:
@@ -48,9 +48,8 @@ export class DeviceComponent implements OnInit {
|
||||
|
||||
fetchData() {
|
||||
this.monitoringApiService.getDeviceData().subscribe((res) => {
|
||||
console.log(res);
|
||||
this.data = res;
|
||||
this.filteredRows = this.data.data;
|
||||
this.filteredRows = this.data.results.data;
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -47,8 +47,8 @@ export class MasterCategoryComponent implements OnInit {
|
||||
|
||||
fetchData() {
|
||||
this.monitoringApiService.getMasterData().subscribe((res) => {
|
||||
this.data = res.data.data;
|
||||
this.dataMasterCategori = res.data.data.find(
|
||||
this.data = res.results.data;
|
||||
this.dataMasterCategori = res.results.data.find(
|
||||
(item) => item.name === "master_category"
|
||||
);
|
||||
this.filteredRows = this.dataMasterCategori.headerDetailParam;
|
||||
|
||||
Reference in New Issue
Block a user