From 4fc64af17330a050ac9e421916f2ac36f0f68f43 Mon Sep 17 00:00:00 2001 From: Junyi Date: Wed, 28 Jun 2023 09:40:59 +0700 Subject: [PATCH] fix(client): fix field initializer in detail block (#2144) --- .../buttons/ReadPrettyFormItemInitializers.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/core/client/src/schema-initializer/buttons/ReadPrettyFormItemInitializers.tsx b/packages/core/client/src/schema-initializer/buttons/ReadPrettyFormItemInitializers.tsx index 913380161..be6e5603e 100644 --- a/packages/core/client/src/schema-initializer/buttons/ReadPrettyFormItemInitializers.tsx +++ b/packages/core/client/src/schema-initializer/buttons/ReadPrettyFormItemInitializers.tsx @@ -39,7 +39,7 @@ export const ReadPrettyFormItemInitializers = (props: any) => { }); } associationFields.length > 0 && - fieldItems.push([ + fieldItems.push( { type: 'divider', }, @@ -48,7 +48,7 @@ export const ReadPrettyFormItemInitializers = (props: any) => { title: t('Display association fields'), children: associationFields, }, - ]); + ); fieldItems.push( {