From dfcd21f34fa0e522d3595a1f566b1ba8943fc462 Mon Sep 17 00:00:00 2001 From: Junyi Date: Thu, 4 Jan 2024 20:57:21 +0800 Subject: [PATCH] refactor(client): pass props to antd list (#3319) --- .../src/schema-component/antd/list/List.tsx | 25 +++++++++++-------- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/packages/core/client/src/schema-component/antd/list/List.tsx b/packages/core/client/src/schema-component/antd/list/List.tsx index fa36c01db..2df4977d5 100644 --- a/packages/core/client/src/schema-component/antd/list/List.tsx +++ b/packages/core/client/src/schema-component/antd/list/List.tsx @@ -60,6 +60,7 @@ const InternalList = (props) => { > { } loading={service?.loading} > - {field.value?.map((item, index) => { - return ( - - ); - })} + {field.value?.length + ? field.value.map((item, index) => { + return ( + + ); + }) + : null}