forked from extern/egroupware
remove unnecessary adding of free entries to select_options
This commit is contained in:
parent
3567a75e33
commit
8dd6dcf97c
@ -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
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user