From 4dc12fe2932df0e9e6a17c9caae4aa4678036c98 Mon Sep 17 00:00:00 2001 From: abradat Date: Tue, 12 Nov 2024 11:11:16 -0800 Subject: [PATCH] fix tag search in tag component --- .../src/app/shared/tags/tags-header/tags-header.component.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/alcs-frontend/src/app/shared/tags/tags-header/tags-header.component.ts b/alcs-frontend/src/app/shared/tags/tags-header/tags-header.component.ts index d9a01999d..8a1c45bfc 100644 --- a/alcs-frontend/src/app/shared/tags/tags-header/tags-header.component.ts +++ b/alcs-frontend/src/app/shared/tags/tags-header/tags-header.component.ts @@ -102,8 +102,7 @@ export class TagsHeaderComponent implements OnInit, OnChanges { const filterValue = value.toLowerCase(); return this.allTags.filter( (tag) => - tag.name.toLowerCase().startsWith(filterValue) && - !this.tags.some((selectedTag) => selectedTag.uuid === tag.uuid), + tag.name.toLowerCase().includes(filterValue) && !this.tags.some((selectedTag) => selectedTag.uuid === tag.uuid), ); }