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) {
|
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
|
|
||||||
);
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user