Fix legacy dialog gave error without parent

This commit is contained in:
nathan 2022-03-23 13:01:30 -06:00
parent cdbdf53d46
commit 6d538f29f0

View File

@ -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);