feat: configure fields style fix (#1322)

This commit is contained in:
katherinehhh 2023-01-04 18:35:35 +08:00 committed by GitHub
parent 8943dabc4d
commit ebc103c8ff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 15 additions and 14 deletions

View File

@ -16,9 +16,10 @@ export const CustomFormItemInitializers = (props: any) => {
title: t('Configure fields'), title: t('Configure fields'),
children: useCustomFormItemInitializerFields(), children: useCustomFormItemInitializerFields(),
}, },
] ];
if (inheritFields?.length > 0) { if (inheritFields?.length > 0) {
inheritFields.forEach((inherit) => { inheritFields.forEach((inherit) => {
Object.values(inherit)[0].length &&
fieldItems.push( fieldItems.push(
{ {
type: 'divider', type: 'divider',

View File

@ -20,7 +20,7 @@ export const ReadPrettyFormItemInitializers = (props: any) => {
]; ];
if (inheritFields?.length > 0) { if (inheritFields?.length > 0) {
inheritFields.forEach((inherit) => { inheritFields.forEach((inherit) => {
fieldItems.push( Object.values(inherit)[0]?.length&&fieldItems.push(
{ {
type: 'divider', type: 'divider',
}, },