Avoid error if nextmatch dynheight was not created

This commit is contained in:
nathan 2024-11-27 10:06:11 -07:00
parent 95fec57412
commit 71b38566e5

View File

@ -407,7 +407,10 @@ export class et2_nextmatch extends et2_DOMWidget implements et2_IResizeable, et2
{ {
this.controller.destroy(); this.controller.destroy();
} }
this.dynheight.destroy(); if(this.dynheight)
{
this.dynheight.destroy();
}
super.destroy(); super.destroy();
} }