Skip to content

Commit

Permalink
fix(list): support add string line
Browse files Browse the repository at this point in the history
  • Loading branch information
chenshuai2144 committed Mar 15, 2024
1 parent 8fa324b commit 9ec366d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/form/src/components/List/ListContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ const ProFormListContainer: React.FC<ProFormListItemProps> = (props) => {
let index = uuidFields.length;
// 如果是顶部,加到第一个,如果不是,为空就是最后一个
if (position === 'top') index = 0;
await wrapperAction.add(runFunction(creatorRecord) || {}, index);
await wrapperAction.add(runFunction(creatorRecord) ?? {}, index);
setLoading(false);
}}
>
Expand Down

0 comments on commit 9ec366d

Please sign in to comment.