perbaikan monitoring list search

This commit is contained in:
Fuzi_fauzia 2024-08-20 11:45:47 +07:00
parent cd1f56e07b
commit 2a4135c966
1 changed files with 1 additions and 2 deletions

View File

@ -49,7 +49,6 @@ export class ListMonitoringComponent {
this.data = res;
// this.filteredRows = this.data.results.data;
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.roomEntity.name.toLowerCase().includes(searchTermLC) ||
row.statusEntity.name.toLowerCase().includes(searchTermLC) ||
row.floorEntity.name.toLowerCase().includes(searchTermLC)
row.floorEntity?.name.toLowerCase().includes(searchTermLC)
);
}