diff --git a/components/table/demo/edit-row.md b/components/table/demo/edit-row.md index 4df9d9c565..2b7fe71d5f 100644 --- a/components/table/demo/edit-row.md +++ b/components/table/demo/edit-row.md @@ -146,8 +146,8 @@ class EditableTable extends React.Component { edit(key) { this.setState({ editingKey: key }); } - save(from, key) { - from.validateFields((error, row) => { + save(form, key) { + form.validateFields((error, row) => { if (error) { return; }