From 0b29d723a47e9665f52fe46445c3cdd45d0cb912 Mon Sep 17 00:00:00 2001 From: nathan Date: Wed, 9 Oct 2024 09:37:29 -0600 Subject: [PATCH] et2_widget_grid: Avoid exception if getDOMNode called as part of constructor --- api/js/etemplate/et2_widget_grid.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/js/etemplate/et2_widget_grid.ts b/api/js/etemplate/et2_widget_grid.ts index 6a8266619f..a441a10302 100644 --- a/api/js/etemplate/et2_widget_grid.ts +++ b/api/js/etemplate/et2_widget_grid.ts @@ -871,7 +871,7 @@ export class et2_grid extends et2_DOMWidget implements et2_IDetachedDOM, et2_IAl // outer table. if(_sender == this || typeof _sender == 'undefined') { - return this.wrapper != null ? this.wrapper[0] : this.table[0]; + return this.wrapper != null ? this.wrapper[0] : this.table != null ? this.table[0] : null; } // Check whether the _sender object exists inside the management array