diff --git a/api/js/etemplate/et2_extension_nextmatch.ts b/api/js/etemplate/et2_extension_nextmatch.ts index 6d8a0947ec..4b52931bc9 100644 --- a/api/js/etemplate/et2_extension_nextmatch.ts +++ b/api/js/etemplate/et2_extension_nextmatch.ts @@ -407,7 +407,10 @@ export class et2_nextmatch extends et2_DOMWidget implements et2_IResizeable, et2 { this.controller.destroy(); } - this.dynheight.destroy(); + if(this.dynheight) + { + this.dynheight.destroy(); + } super.destroy(); }