📝 fix site demo, dynamic form firstItem undefined

This commit is contained in:
ycjcl868 2019-01-29 11:50:43 +08:00
parent 6560697c09
commit 89653d2e89

View File

@ -40,7 +40,7 @@ class DynamicFieldSet extends React.Component {
const { form } = this.props;
// can use data-binding to get
const keys = form.getFieldValue('keys');
const nextKeys = keys.concat(++id);
const nextKeys = keys.concat(id++);
// can use data-binding to set
// important! notify form to detect changes
form.setFieldsValue({