Fix error Cannot read properties of undefined (reading 'implements')

This commit is contained in:
Hadi Nategh 2023-03-07 16:16:57 +01:00
parent 287f66c8ba
commit ac4bd98385

View File

@ -168,8 +168,8 @@ export class et2_hbox extends et2_baseWidget
if (_sender != this && this.alignData.hasAlign)
{
// Check whether we've create a special container for the widget
let align = (_sender.implements(et2_IAligned) ?
_sender.get_align() : "left");
let align = (_sender?.implements(et2_IAligned) ?
_sender?.get_align() : "left");
if (align == "left" && this.leftDiv != null)
{