From ba203d26a7f61f0f83f39577446c22ea761632d0 Mon Sep 17 00:00:00 2001 From: trivernis Date: Sun, 30 Jan 2022 17:44:20 +0100 Subject: [PATCH] Fix search wildcard input TG-77 #closed Signed-off-by: trivernis --- .../shared/input/filter-input/filter-input.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mediarepo-ui/src/app/components/shared/input/filter-input/filter-input.component.ts b/mediarepo-ui/src/app/components/shared/input/filter-input/filter-input.component.ts index f6e92fa..d12cd95 100644 --- a/mediarepo-ui/src/app/components/shared/input/filter-input/filter-input.component.ts +++ b/mediarepo-ui/src/app/components/shared/input/filter-input/filter-input.component.ts @@ -113,7 +113,7 @@ export class FilterInputComponent implements OnChanges { private validateFilters(filters: FilterQuery[]): boolean { for (const filter of filters) { - if ("Tag" in filter && !this.tagsForAutocomplete.includes(filter["Tag"].tag)) { + if ("Tag" in filter && !filter.Tag.tag.endsWith("*") && !this.tagsForAutocomplete.includes(filter.Tag.tag)) { console.debug("tags don't include", filter); return false; }