Skip to content

Commit

Permalink
Update object_fields.service.js
Browse files Browse the repository at this point in the history
  • Loading branch information
baozhoutao committed Sep 5, 2024
1 parent 9ff35e2 commit d915768
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit d915768

Please sign in to comment.