diff --git a/kafka-manager-console/src/container/drawer/data-migration.tsx b/kafka-manager-console/src/container/drawer/data-migration.tsx index 4da64f5c..7426d1a3 100644 --- a/kafka-manager-console/src/container/drawer/data-migration.tsx +++ b/kafka-manager-console/src/container/drawer/data-migration.tsx @@ -173,8 +173,8 @@ class DataMigrationFormTable extends React.Component { const throttleArr = [] as any[]; infoData.beginTime = +moment(infoData.beginTime).format('x'); Object.getOwnPropertyNames(tableResult).forEach(key => { - const throttleIndex = Number(key.slice(0, 1)); - const throttleKey = key.slice(2); + const throttleIndex = Number(key.split("-")[0]); + const throttleKey = key.split("-")[1]; const throttleName = tableResult[key]; if (!throttleArr[throttleIndex]) { throttleArr[throttleIndex] = {};