From 2a4135c9663e8912819ff968748026228c2df29d Mon Sep 17 00:00:00 2001 From: Fuzi_fauzia Date: Tue, 20 Aug 2024 11:45:47 +0700 Subject: [PATCH] perbaikan monitoring list search --- .../hemat-app/list-monitoring/list-monitoring.component.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/app/content/hemat-app/list-monitoring/list-monitoring.component.ts b/src/app/content/hemat-app/list-monitoring/list-monitoring.component.ts index d418df4..3afe5f4 100644 --- a/src/app/content/hemat-app/list-monitoring/list-monitoring.component.ts +++ b/src/app/content/hemat-app/list-monitoring/list-monitoring.component.ts @@ -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) ); }