From 9ec366d3d1ef09587e48a3d98ab5ffe584f3248c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=9F=E8=B4=A4?= Date: Fri, 15 Mar 2024 10:36:19 +0800 Subject: [PATCH] fix(list): support add string line --- packages/form/src/components/List/ListContainer.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/form/src/components/List/ListContainer.tsx b/packages/form/src/components/List/ListContainer.tsx index 2c2ecab2326e..abd5f6872f29 100644 --- a/packages/form/src/components/List/ListContainer.tsx +++ b/packages/form/src/components/List/ListContainer.tsx @@ -122,7 +122,7 @@ const ProFormListContainer: React.FC = (props) => { let index = uuidFields.length; // 如果是顶部,加到第一个,如果不是,为空就是最后一个 if (position === 'top') index = 0; - await wrapperAction.add(runFunction(creatorRecord) || {}, index); + await wrapperAction.add(runFunction(creatorRecord) ?? {}, index); setLoading(false); }} >