From cdbdf53d4698dd0bb5f8debf00d55afa77051651 Mon Sep 17 00:00:00 2001 From: nathan Date: Wed, 23 Mar 2022 12:01:59 -0600 Subject: [PATCH] Et2Dialog: Make sure value has a content before loading template, otherwise we get an error from etemplate2 --- api/js/etemplate/Et2Dialog/Et2Dialog.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/api/js/etemplate/Et2Dialog/Et2Dialog.ts b/api/js/etemplate/Et2Dialog/Et2Dialog.ts index dc78afae78..90317ae4c9 100644 --- a/api/js/etemplate/Et2Dialog/Et2Dialog.ts +++ b/api/js/etemplate/Et2Dialog/Et2Dialog.ts @@ -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) {