diff --git a/api/js/etemplate/et2_widget_dialog.ts b/api/js/etemplate/et2_widget_dialog.ts index 759b737086..b2776188ee 100644 --- a/api/js/etemplate/et2_widget_dialog.ts +++ b/api/js/etemplate/et2_widget_dialog.ts @@ -51,9 +51,9 @@ import {et2_attribute_registry, et2_register_widget, et2_widget} from "./et2_cor export class et2_dialog extends Et2Dialog { - constructor(parent, attrs?) + constructor(parent?, attrs?) { - super(parent.egw()); + super(parent?.egw() || egw); if(attrs) { this.transformAttributes(attrs);