diff --git a/packages/core/client/src/schema-component/antd/table-v2/Table.tsx b/packages/core/client/src/schema-component/antd/table-v2/Table.tsx index 82a01b4a9..9f5eb2806 100644 --- a/packages/core/client/src/schema-component/antd/table-v2/Table.tsx +++ b/packages/core/client/src/schema-component/antd/table-v2/Table.tsx @@ -304,10 +304,9 @@ export const Table: any = observer( } const fromIndex = e.active?.data.current?.sortable?.index; const toIndex = e.over?.data.current?.sortable?.index; - const from = field.value[fromIndex]; - const to = field.value[toIndex]; - field.move(fromIndex, toIndex); - onRowDragEnd({ fromIndex, toIndex, from, to }); + const from = field.value[fromIndex] || e.active; + const to = field.value[toIndex] || e.over; + onRowDragEnd({ from, to }); }} >