Skip to content

Commit

Permalink
[Bug]: 对象高亮字段配置为空数组,仍然显示了高亮区域
Browse files Browse the repository at this point in the history
  • Loading branch information
tujiajun committed Aug 6, 2024
1 parent 56207a9 commit a78986b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -969,7 +969,7 @@ export async function getObjectRecordDetailHeader(objectSchema, recordId, option

// console.log('=======================max=========================', max)

if(objectSchema.compactLayouts){
if(objectSchema.compactLayouts && objectSchema.compactLayouts.length > 0){
const details = [];
_.each(_.slice(_.difference(objectSchema.compactLayouts, [objectSchema.NAME_FIELD_KEY]), 0, max), (fieldName)=>{
const field = objectSchema.fields[fieldName];
Expand Down

0 comments on commit a78986b

Please sign in to comment.