fix ReferenceError: value is not defined

This commit is contained in:
ralf 2022-06-13 12:34:05 +02:00
parent 30da3bb923
commit b24b6b42e4

View File

@ -331,9 +331,9 @@ export const Et2WithSearchMixin = <T extends Constructor<LitElement>>(superclass
// Overridden to add options if allowFreeEntries=true // Overridden to add options if allowFreeEntries=true
if(this.allowFreeEntries) if(this.allowFreeEntries)
{ {
if(typeof this.value == "string" && !this.select_options.find(o => o.value == value)) if(typeof this.value == "string" && !this.select_options.find(o => o.value == this.value))
{ {
this.createFreeEntry(value); this.createFreeEntry(this.value);
} }
else else
{ {