Remove setting textContent twice. If needed, loadFromXML() will handle it.

This commit is contained in:
nathan 2022-08-04 08:58:36 -06:00
parent 47825f1be3
commit ae4b8de4e5

View File

@ -1316,7 +1316,6 @@ export function loadWebComponent(_nodeName : string, _template_node : Element|{[
// @ts-ignore
let widget = <Et2Widget>document.createElement(_nodeName);
widget.textContent = _template_node.textContent;
if (parent && typeof widget.setParent === 'function') widget.setParent(parent);