From d84f82294c96afd0f8bee5afecbb14afa68a5e91 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=92=8F=E5=92=8C?= Date: Wed, 25 Oct 2023 11:58:38 +0800 Subject: [PATCH] PullRequest: 202 fixes oceanbase/odc#470,fixes oceanbase/odc#580 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Merge branch 'fix/dev-4.2.2-bugs-xyh-1025 of git@code.alipay.com:oceanbase/oceanbase-developer-center.git into dev-4.2.2 https://code.alipay.com/oceanbase/oceanbase-developer-center/pull_requests/202 Signed-off-by: 晓康 * fixes oceanbase/odc#470,fixes oceanbase/odc#580 --- .../Task/ImportTask/CreateModal/index.tsx | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/component/Task/ImportTask/CreateModal/index.tsx b/src/component/Task/ImportTask/CreateModal/index.tsx index 61a683a46..353f7f38a 100644 --- a/src/component/Task/ImportTask/CreateModal/index.tsx +++ b/src/component/Task/ImportTask/CreateModal/index.tsx @@ -517,12 +517,14 @@ class CreateModal extends React.Component { formData={formData} projectId={projectId} onFormValueChange={(values) => { - this.setState({ - isFormChanged: true, - formData: { - ...this.state.formData, - ...values, - }, + this.setState((state) => { + return { + isFormChanged: true, + formData: { + ...state.formData, + ...values, + }, + }; }); }} ref={this._formRef}