Browse Source

💩 code: deleted a redundant line of code and changed a mistake (#6197)

pull/6210/head
tongkunLiu 7 years ago
committed by GitHub
parent
commit
a6570da5d1
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      src/pages/ListTableList/components/UpdateForm.tsx
  2. 2
      src/pages/ListTableList/index.tsx

3
src/pages/ListTableList/components/UpdateForm.tsx

@ -186,8 +186,7 @@ const UpdateForm: React.FC<UpdateFormProps> = (props) => {
title="规则配置"
visible={updateModalVisible}
footer={renderFooter()}
onCancel={() => handleUpdateModalVisible(false, values)}
afterClose={() => handleUpdateModalVisible()}
onCancel={() => handleUpdateModalVisible()}
>
<Steps style={{ marginBottom: 28 }} size="small" current={currentStep}>
<Step title="基本信息" />

2
src/pages/ListTableList/index.tsx

@ -216,7 +216,7 @@ const TableList: React.FC<{}> = () => {
onSubmit={async (value) => {
const success = await handleUpdate(value);
if (success) {
handleModalVisible(false);
handleUpdateModalVisible(false);
setStepFormValues({});
if (actionRef.current) {
actionRef.current.reload();

Loading…
Cancel
Save