From ac1d8b6be8dedba42d0652c85d59a5058ce5c2cb Mon Sep 17 00:00:00 2001 From: nathan Date: Mon, 2 Jan 2023 16:20:50 -0700 Subject: [PATCH] Fix TypeError: Cannot read properties of null (reading 'replace') Fixes unable to edit tracker in mobile view. --- 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 0d379ddb55..44a284572d 100644 --- a/api/js/etemplate/et2_widget_grid.ts +++ b/api/js/etemplate/et2_widget_grid.ts @@ -521,7 +521,7 @@ export class et2_grid extends et2_DOMWidget implements et2_IDetachedDOM, et2_IAl // Apply widget's class to td, for backward compatability if (node.getAttribute("class")) { - let widget_class = this.getArrayMgr("content").expandName(node.getAttribute("class")) + let widget_class = (this.getArrayMgr("content").expandName(node.getAttribute("class")) || "") // Do not pass et2_required into parent cell, it looks bad .replace("et2_required", "") cell.class += (cell.class ? " " : "") + widget_class;