Fix error TypeError: Cannot read property 'length' of undefined

This commit is contained in:
Hadi Nategh 2021-07-26 10:10:30 +02:00
parent d02a9d5b86
commit 93c390139b

View File

@ -638,7 +638,7 @@ export class et2_taglist extends et2_selectbox implements et2_IResizeable
}); });
// if value has already been set, re-set it by it's id(s) // if value has already been set, re-set it by it's id(s)
if (this.options.select_options.length && this.options.value.length) { if (this.options.select_options.length && this.options.value?.length) {
this.set_value(this.options.value.map((v) => v.id)); this.set_value(this.options.value.map((v) => v.id));
} }
} }