From 5d95eed09a15491a0a1e8700b2cfdc05ecbe8ecb Mon Sep 17 00:00:00 2001 From: katherinehhh Date: Tue, 25 Apr 2023 17:59:31 +0800 Subject: [PATCH] fix: gantt abnormal drag and drop update action (#1760) --- .../src/schema-component/antd/gantt/components/gantt/gantt.tsx | 2 -- 1 file changed, 2 deletions(-) diff --git a/packages/core/client/src/schema-component/antd/gantt/components/gantt/gantt.tsx b/packages/core/client/src/schema-component/antd/gantt/components/gantt/gantt.tsx index c9fc60b00..5a4c6abb1 100644 --- a/packages/core/client/src/schema-component/antd/gantt/components/gantt/gantt.tsx +++ b/packages/core/client/src/schema-component/antd/gantt/components/gantt/gantt.tsx @@ -403,7 +403,6 @@ export const Gantt: any = (props: any) => { await resource.update({ filterByTk: task.id, values: { - ...task, [fieldNames.progress]: task.progress / 100, }, }); @@ -414,7 +413,6 @@ export const Gantt: any = (props: any) => { await resource.update({ filterByTk: task.id, values: { - ...task, [fieldNames.start]: task.start, [fieldNames.end]: task.end, },