From d80078893e692c1ebf8b91c077f4a022964aca08 Mon Sep 17 00:00:00 2001 From: nathan Date: Fri, 8 Sep 2023 08:41:16 -0600 Subject: [PATCH] Api: Fix customfield with no data sent breaks entire customfield tab --- 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 9b8dee9cea..bcb1cc4bb1 100644 --- a/api/js/etemplate/et2_extension_customfields.ts +++ b/api/js/etemplate/et2_extension_customfields.ts @@ -360,7 +360,7 @@ export class et2_customfields_list extends et2_valueWidget implements et2_IDetac // Add in settings that are objects // Customized settings for this widget (unlikely) - const data = this.getArrayMgr("modifications").getEntry(this.id); + const data = this.getArrayMgr("modifications").getEntry(this.id) ?? {}; // Check for global settings const global_data = this.getArrayMgr("modifications").getRoot().getEntry('~custom_fields~', true); if(global_data)