javascript error on non existing nodeToUse

This commit is contained in:
milan 2024-07-26 12:31:56 +02:00
parent 519e40a81f
commit 357551c7a2

View File

@ -312,8 +312,8 @@ export class EgwPopupActionImplementation implements EgwActionImplementation {
const _implContext = {
event: e, posx: _xy.posx,
posy: _xy.posy,
innerText: nodeToUse.title || _node.innerText,//nodeToUse only exists on widgets that define findActionTarget
target: nodeToUse.target || _node,
innerText: nodeToUse?.title || _node.innerText,//nodeToUse only exists on widgets that define findActionTarget
target: nodeToUse?.target || _node,
};
_callback.call(contextToUse || _context, _implContext, this);
}