Merge pull request #5162 from tsiegleauq/search-value-selector-for-states

Fix untranslated searchable values
This commit is contained in:
Emanuel Schütze 2019-12-10 17:00:29 +01:00 committed by GitHub
commit bb41125bd1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -152,13 +152,8 @@ export class SearchValueSelectorComponent implements OnDestroy {
if (foundId) { if (foundId) {
return true; return true;
} }
const searchableString = this.translate.instant(item.getTitle()).toLowerCase();
return ( return searchableString.indexOf(this.searchValue) > -1;
item
.toString()
.toLowerCase()
.indexOf(this.searchValue) > -1
);
}); });
} }
} }