perbaikan monitoring list search
This commit is contained in:
parent
cd1f56e07b
commit
2a4135c966
|
@ -49,7 +49,6 @@ export class ListMonitoringComponent {
|
||||||
this.data = res;
|
this.data = res;
|
||||||
// this.filteredRows = this.data.results.data;
|
// this.filteredRows = this.data.results.data;
|
||||||
this.filteredRows = this.data.results.data.sort((a, b) => b.id - a.id);
|
this.filteredRows = this.data.results.data.sort((a, b) => b.id - a.id);
|
||||||
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -69,7 +68,7 @@ export class ListMonitoringComponent {
|
||||||
row.buildingEntity.name.toLowerCase().includes(searchTermLC) ||
|
row.buildingEntity.name.toLowerCase().includes(searchTermLC) ||
|
||||||
row.roomEntity.name.toLowerCase().includes(searchTermLC) ||
|
row.roomEntity.name.toLowerCase().includes(searchTermLC) ||
|
||||||
row.statusEntity.name.toLowerCase().includes(searchTermLC) ||
|
row.statusEntity.name.toLowerCase().includes(searchTermLC) ||
|
||||||
row.floorEntity.name.toLowerCase().includes(searchTermLC)
|
row.floorEntity?.name.toLowerCase().includes(searchTermLC)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue