remove unnecessary adding of free entries to select_options

This commit is contained in:
ralf 2022-06-23 21:28:01 +02:00
parent 3567a75e33
commit 8dd6dcf97c

View File

@ -38,10 +38,6 @@ export class Et2SelectCountry extends Et2Select
(<Promise<SelectOption[]>>so.country(this, {}, true)).then(options =>
{
if (this.allowFreeEntries && this.value && !options.filter(option => option.value == this.value).length)
{
options = options.concat(<SelectOption>{value: this.value, label: this.value});
}
this.select_options = options
});
}