diff --git a/src/pages/List/TableList.js b/src/pages/List/TableList.js index 1853dab6bb19e41800b60ffac235c335ee48a0f8..eed64c7222b4bde8dee38496ef6db11f275c04b0 100644 --- a/src/pages/List/TableList.js +++ b/src/pages/List/TableList.js @@ -66,6 +66,12 @@ const CreateForm = Form.create()(props => { @Form.create() class UpdateForm extends PureComponent { + static defaultProps = { + handleUpdate: () => {}, + handleUpdateModalVisible: () => {}, + values: {}, + }; + constructor(props) { super(props); @@ -203,13 +209,13 @@ class UpdateForm extends PureComponent { }; renderFooter = currentStep => { - const { handleUpdateModalVisible } = this.props; + const { handleUpdateModalVisible, values } = this.props; if (currentStep === 1) { return [ , - , , - , ,