From 4471b054bcaceebf09c74db4955a5ec2b9244361 Mon Sep 17 00:00:00 2001 From: yinwusong Date: Sun, 27 Nov 2022 16:03:17 +0800 Subject: [PATCH] =?UTF-8?q?fix:=202.6=20=E7=89=88=E6=9C=AC=E6=89=B9?= =?UTF-8?q?=E9=87=8F=E8=BF=81=E7=A7=BBbug=20=20https://github.com/didi/Kno?= =?UTF-8?q?wStreaming/issues/785?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kafka-manager-console/src/container/drawer/data-migration.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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] = {};