fix tag search

This commit is contained in:
_Bastler 2021-12-04 21:25:08 +01:00
parent df067fd3cb
commit 12a33eb6b8
1 changed files with 7 additions and 1 deletions

View File

@ -33,7 +33,13 @@ export class UiTagsPicker implements OnInit {
.valueChanges
.pipe(
debounceTime(300),
switchMap(value => this.tagsService.search(value))
switchMap(value => {
if (value.startsWith('#')) {
value = value.replace('#', '');
}
value = value.split('#').join('-');
return this.tagsService.search(value);
})
);
this.tags = this.model || [];