From 27418ec0f461d777600dcd9f9faf1bcd8c9917ac Mon Sep 17 00:00:00 2001 From: nathan Date: Wed, 14 Feb 2024 11:18:15 -0700 Subject: [PATCH] Et2Tree: Fix getUserData() did not return the data Find callback did not return, so never matched --- api/js/etemplate/Et2Tree/Et2Tree.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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];