From 0d42ece00476f5a6039fd2d559114639fe3c3983 Mon Sep 17 00:00:00 2001 From: jianxing Date: Tue, 4 Jul 2023 19:58:23 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=B5=8B=E8=AF=95=E8=B7=9F=E8=B8=AA):=20?= =?UTF-8?q?=E7=94=A8=E4=BE=8B=E6=AD=A5=E9=AA=A4=E4=B8=BA=20null=20?= =?UTF-8?q?=E7=9A=84=E6=95=B0=E6=8D=AE=EF=BC=8C=E8=84=91=E5=9B=BE=E5=8A=A0?= =?UTF-8?q?=E8=BD=BD=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1027519 --user=陈建星 【测试跟踪】脑图模式切换-用例内容比较大时-一直加载加载不出来 https://www.tapd.cn/55049933/s/1389401 --- .../src/business/common/minder/minderUtils.js | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/test-track/frontend/src/business/common/minder/minderUtils.js b/test-track/frontend/src/business/common/minder/minderUtils.js index dd62820bf3..dde8bc2014 100644 --- a/test-track/frontend/src/business/common/minder/minderUtils.js +++ b/test-track/frontend/src/business/common/minder/minderUtils.js @@ -291,14 +291,16 @@ export function appendCase(parent, item, isDisable, setParamCallback) { if (!(item.steps instanceof Array)) { item.steps = JSON.parse(item.steps); } - item.steps.forEach((step) => { - let descData = getNodeData(step.desc, null, isDisable); - if (descData) { - descData.num = step.num; - let descNode = appendChildNode(caseNode, descData); - appendChildNode(descNode, getNodeData(step.result, null, isDisable)); - } - }); + if (item.steps) { + item.steps.forEach((step) => { + let descData = getNodeData(step.desc, null, isDisable); + if (descData) { + descData.num = step.num; + let descNode = appendChildNode(caseNode, descData); + appendChildNode(descNode, getNodeData(step.result, null, isDisable)); + } + }); + } } }