Merge pull request #5162 from tsiegleauq/search-value-selector-for-states
Fix untranslated searchable values
This commit is contained in:
commit
bb41125bd1
@ -152,13 +152,8 @@ export class SearchValueSelectorComponent implements OnDestroy {
|
||||
if (foundId) {
|
||||
return true;
|
||||
}
|
||||
|
||||
return (
|
||||
item
|
||||
.toString()
|
||||
.toLowerCase()
|
||||
.indexOf(this.searchValue) > -1
|
||||
);
|
||||
const searchableString = this.translate.instant(item.getTitle()).toLowerCase();
|
||||
return searchableString.indexOf(this.searchValue) > -1;
|
||||
});
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user