We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a18d79d commit 29c4ae6Copy full SHA for 29c4ae6
src/modal/demos/advance.tsx
@@ -81,8 +81,8 @@ export default () => {
81
},
82
];
83
84
- const onSubmit = (values: Data, record: number) => {
85
- dataSource.splice(record, 0, { ...values, key: new Date() + '' });
+ const onSubmit = (values: Data) => {
+ dataSource.splice(index, 0, { ...values, key: new Date() + '' });
86
setDataSource([...dataSource]);
87
88
changeVisible();
@@ -97,7 +97,6 @@ export default () => {
97
title="advanceModalForm"
98
visible={visible}
99
onCancel={changeVisible}
100
- record={index}
101
onSubmit={onSubmit}
102
/>
103
</>
0 commit comments