diff --git a/alcs-frontend/src/app/features/search/search.component.ts b/alcs-frontend/src/app/features/search/search.component.ts index da6f2e0a0e..1e017e0e17 100644 --- a/alcs-frontend/src/app/features/search/search.component.ts +++ b/alcs-frontend/src/app/features/search/search.component.ts @@ -454,15 +454,13 @@ export class SearchComponent implements OnInit, OnDestroy { private filterTags(value: string): TagDto[] { const filterValue = value.toLowerCase(); - return this.allTags.filter( - (tag) => { - if (filterValue) { - return !this.tags.includes(tag) && tag.name.toLowerCase().startsWith(filterValue) - } else { - return !this.tags.includes(tag); - } + return this.allTags.filter((tag) => { + if (filterValue) { + return !this.tags.includes(tag) && tag.name.toLowerCase().includes(filterValue); + } else { + return !this.tags.includes(tag); } - ); + }); } private updateFilteredTags(): void {