From 44359621a325c0440a0df29cb04965c35900f555 Mon Sep 17 00:00:00 2001 From: ralf Date: Wed, 26 Jul 2023 14:20:13 +0200 Subject: [PATCH] fix TypeError: Cannot read properties of null (reading 'trim') --- api/js/etemplate/et2_extension_customfields.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/js/etemplate/et2_extension_customfields.ts b/api/js/etemplate/et2_extension_customfields.ts index 825c47e150..2684af92b4 100644 --- a/api/js/etemplate/et2_extension_customfields.ts +++ b/api/js/etemplate/et2_extension_customfields.ts @@ -276,7 +276,7 @@ export class et2_customfields_list extends et2_valueWidget implements et2_IDetac else { // Label in first column, widget in 2nd - const label = this.options.label || field.label; + const label = this.options.label || field.label || ''; jQuery(document.createElement("td")) .prependTo(row); et2_createWidget("label", {id: id + "_label", value: label.trim(), for: id}, this);