Et2Dialog: Make sure value has a content before loading template, otherwise we get an error from etemplate2

This commit is contained in:
nathan 2022-03-23 12:01:59 -06:00
parent a5d6fea958
commit cdbdf53d46

View File

@ -494,6 +494,12 @@ export class Et2Dialog extends Et2Widget(ScopedElementsMixin(SlotMixin(LionDialo
{
this._template_widget.clear();
}
// Etemplate wants a content
if(typeof this.__value.content === "undefined")
{
this.__value.content = {};
}
this._template_widget = new etemplate2(this._overlayContentNode._contentNode);
if(this.__template.indexOf('.xet') > 0)
{