diff --git a/api/js/etemplate/et2_extension_nextmatch.ts b/api/js/etemplate/et2_extension_nextmatch.ts index 23328a8c30..0b1fcfa729 100644 --- a/api/js/etemplate/et2_extension_nextmatch.ts +++ b/api/js/etemplate/et2_extension_nextmatch.ts @@ -3929,7 +3929,7 @@ export class et2_nextmatch_header_bar extends et2_DOMWidget implements et2_INext return true; }; - if(window.customElements.get(_widget.localName) !== "undefined") + if(_widget.localName && window.customElements.get(_widget.localName) !== "undefined") { // @ts-ignore _widget.onchange = (ev) =>