diff --git a/api/js/etemplate/et2_core_DOMWidget.ts b/api/js/etemplate/et2_core_DOMWidget.ts index 00264c4411..e498cfdbfd 100644 --- a/api/js/etemplate/et2_core_DOMWidget.ts +++ b/api/js/etemplate/et2_core_DOMWidget.ts @@ -349,7 +349,7 @@ export abstract class et2_DOMWidget extends et2_widget implements et2_IDOMNode { // Find the tab by DOM heritage // @ts-ignore - if(tabbox.tabData[i].contentDiv.contains(this.div[0] || this)) + if(tabbox.tabData[i].contentDiv?.contains(this.div[0] || this)) { return tabbox.tabData[i]; } @@ -979,4 +979,4 @@ export class et2_action_object_impl { return this.aoi; } -} +} \ No newline at end of file