diff --git a/api/js/egw_action/EgwPopupActionImplementation.ts b/api/js/egw_action/EgwPopupActionImplementation.ts index d6d1c77088..3194ed6ac7 100644 --- a/api/js/egw_action/EgwPopupActionImplementation.ts +++ b/api/js/egw_action/EgwPopupActionImplementation.ts @@ -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); }