Skip to content

Commit 1632b05

Browse files
committed
fix: clone
1 parent f0fcaa2 commit 1632b05

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/components/form/FormList.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ const FormList: React.FC<TdFormListProps> = (props) => {
3535
} else {
3636
propsInitialData = get(initialDataFromForm, fullPath);
3737
}
38-
return propsInitialData;
38+
return cloneDeep(propsInitialData);
3939
}, [fullPath, parentFullPath, initialDataFromForm, parentInitialData, props.initialData]);
4040

4141
const [formListValue, setFormListValue] = useState(() => {

0 commit comments

Comments
 (0)