Et2Tree: Fix getUserData() did not return the data

Find callback did not return, so never matched
This commit is contained in:
nathan 2024-02-14 11:18:15 -07:00
parent 8b21d21291
commit 27418ec0f4

View File

@ -574,9 +574,7 @@ export class Et2Tree extends Et2WidgetWithSelectMixin(LitElement)
getUserData(_nodeId, _name) getUserData(_nodeId, _name)
{ {
return this.getNode(_nodeId)?.userdata?.find(elem => { return this.getNode(_nodeId)?.userdata?.find(elem => elem.name === _name)?.content
elem.name === _name
})?.content
} }
//this.selectOptions = find_select_options(this)[1]; //this.selectOptions = find_select_options(this)[1];