Fix search wildcard input

TG-77 #closed

Signed-off-by: trivernis <trivernis@protonmail.com>
pull/6/head
trivernis 3 years ago
parent bb676ba972
commit ba203d26a7
Signed by: Trivernis
GPG Key ID: DFFFCC2C7A02DB45

@ -113,7 +113,7 @@ export class FilterInputComponent implements OnChanges {
private validateFilters(filters: FilterQuery[]): boolean { private validateFilters(filters: FilterQuery[]): boolean {
for (const filter of filters) { 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); console.debug("tags don't include", filter);
return false; return false;
} }

Loading…
Cancel
Save