summaryrefslogtreecommitdiffstats
path: root/cds-ui/client/src/app/common/shared/pipes/search.pipe.ts
diff options
context:
space:
mode:
Diffstat (limited to 'cds-ui/client/src/app/common/shared/pipes/search.pipe.ts')
-rw-r--r--cds-ui/client/src/app/common/shared/pipes/search.pipe.ts6
1 files changed, 5 insertions, 1 deletions
diff --git a/cds-ui/client/src/app/common/shared/pipes/search.pipe.ts b/cds-ui/client/src/app/common/shared/pipes/search.pipe.ts
index b0d37c3d1..08c76df5b 100644
--- a/cds-ui/client/src/app/common/shared/pipes/search.pipe.ts
+++ b/cds-ui/client/src/app/common/shared/pipes/search.pipe.ts
@@ -31,7 +31,11 @@ export class SearchPipe implements PipeTransform{
if(!searchText) return items;
searchText = searchText.toLowerCase();
return items.filter( it => {
- return it.toLowerCase().includes(searchText);
+ if(it.tags) {
+ return it.tags.toLowerCase().includes(searchText);
+ } else {
+ return items;
+ }
});
}
} \ No newline at end of file