diff --git a/api/js/etemplate/Et2Tree/Et2Tree.ts b/api/js/etemplate/Et2Tree/Et2Tree.ts index 50d6cd45ed..83a355e232 100644 --- a/api/js/etemplate/Et2Tree/Et2Tree.ts +++ b/api/js/etemplate/Et2Tree/Et2Tree.ts @@ -574,9 +574,7 @@ export class Et2Tree extends Et2WidgetWithSelectMixin(LitElement) getUserData(_nodeId, _name) { - return this.getNode(_nodeId)?.userdata?.find(elem => { - elem.name === _name - })?.content + return this.getNode(_nodeId)?.userdata?.find(elem => elem.name === _name)?.content } //this.selectOptions = find_select_options(this)[1];