From d915768c87aaa7bc026623a4953d6f39c5ddace1 Mon Sep 17 00:00:00 2001 From: baozhoutao Date: Thu, 5 Sep 2024 17:41:19 +0800 Subject: [PATCH] Update object_fields.service.js --- .../main/default/services/object_fields.service.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/services/standard-object-database/main/default/services/object_fields.service.js b/services/standard-object-database/main/default/services/object_fields.service.js index e614547323..cfd3c3d309 100644 --- a/services/standard-object-database/main/default/services/object_fields.service.js +++ b/services/standard-object-database/main/default/services/object_fields.service.js @@ -278,9 +278,12 @@ module.exports = { const groups = object.field_groups; const getGroup = (groupName)=>{ + if(groupName == 'undefined' || groupName == 'null'){ + groupName = ''; + } return _.find(groups, (group)=>{ return group.group_name === groupName; - }) + }) || {group_name: groupName} } const objectName = object.name;