fix(测试跟踪): 用例步骤为 null 的数据,脑图加载报错
--bug=1027519 --user=陈建星 【测试跟踪】脑图模式切换-用例内容比较大时-一直加载加载不出来 https://www.tapd.cn/55049933/s/1389401
This commit is contained in:
parent
ddf579e1c5
commit
0d42ece004
|
@ -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));
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue