From 71b38566e59eb53a84537acf577a9309e3f4bf46 Mon Sep 17 00:00:00 2001 From: nathan Date: Wed, 27 Nov 2024 10:06:11 -0700 Subject: [PATCH] Avoid error if nextmatch dynheight was not created --- api/js/etemplate/et2_extension_nextmatch.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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(); }