From a78986bcf93b9e2ffac3614be6fa731ede42e90b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B6=82=E4=BD=B3=E4=BF=8A?= Date: Tue, 6 Aug 2024 15:09:29 +0800 Subject: [PATCH] =?UTF-8?q?[Bug]:=20=E5=AF=B9=E8=B1=A1=E9=AB=98=E4=BA=AE?= =?UTF-8?q?=E5=AD=97=E6=AE=B5=E9=85=8D=E7=BD=AE=E4=B8=BA=E7=A9=BA=E6=95=B0?= =?UTF-8?q?=E7=BB=84=EF=BC=8C=E4=BB=8D=E7=84=B6=E6=98=BE=E7=A4=BA=E4=BA=86?= =?UTF-8?q?=E9=AB=98=E4=BA=AE=E5=8C=BA=E5=9F=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://github.com/steedos/steedos-platform/issues/6705 --- .../@steedos-widgets/amis-lib/src/lib/converter/amis/header.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/@steedos-widgets/amis-lib/src/lib/converter/amis/header.js b/packages/@steedos-widgets/amis-lib/src/lib/converter/amis/header.js index 7a331c2e9..bc6aeda52 100644 --- a/packages/@steedos-widgets/amis-lib/src/lib/converter/amis/header.js +++ b/packages/@steedos-widgets/amis-lib/src/lib/converter/amis/header.js @@ -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];