From 9f9c988c14183dd6ac386e0db35c3b6c30efcb8a Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Tue, 7 Mar 2023 16:16:57 +0100 Subject: [PATCH] Fix error Cannot read properties of undefined (reading 'implements') --- api/js/etemplate/et2_widget_hbox.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/js/etemplate/et2_widget_hbox.ts b/api/js/etemplate/et2_widget_hbox.ts index 1c7420d36d..740057b1e5 100644 --- a/api/js/etemplate/et2_widget_hbox.ts +++ b/api/js/etemplate/et2_widget_hbox.ts @@ -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) {