From 8dd6dcf97cf9b2e02728fe6650163e3b9f028c92 Mon Sep 17 00:00:00 2001 From: ralf Date: Thu, 23 Jun 2022 21:28:01 +0200 Subject: [PATCH] remove unnecessary adding of free entries to select_options --- api/js/etemplate/Et2Select/Et2SelectCountry.ts | 4 ---- 1 file changed, 4 deletions(-) diff --git a/api/js/etemplate/Et2Select/Et2SelectCountry.ts b/api/js/etemplate/Et2Select/Et2SelectCountry.ts index 8d0418ef5c..59dc3df5e9 100644 --- a/api/js/etemplate/Et2Select/Et2SelectCountry.ts +++ b/api/js/etemplate/Et2Select/Et2SelectCountry.ts @@ -38,10 +38,6 @@ export class Et2SelectCountry extends Et2Select (>so.country(this, {}, true)).then(options => { - if (this.allowFreeEntries && this.value && !options.filter(option => option.value == this.value).length) - { - options = options.concat({value: this.value, label: this.value}); - } this.select_options = options }); }