fix(测试跟踪): 用例步骤为 null 的数据,脑图加载报错

--bug=1027519 --user=陈建星 【测试跟踪】脑图模式切换-用例内容比较大时-一直加载加载不出来 https://www.tapd.cn/55049933/s/1389401
This commit is contained in:
jianxing 2023-07-04 19:58:23 +08:00 committed by fit2-zhao
parent ddf579e1c5
commit 0d42ece004
1 changed files with 10 additions and 8 deletions

View File

@ -291,6 +291,7 @@ export function appendCase(parent, item, isDisable, setParamCallback) {
if (!(item.steps instanceof Array)) {
item.steps = JSON.parse(item.steps);
}
if (item.steps) {
item.steps.forEach((step) => {
let descData = getNodeData(step.desc, null, isDisable);
if (descData) {
@ -301,6 +302,7 @@ export function appendCase(parent, item, isDisable, setParamCallback) {
});
}
}
}
if (item.issueList && item.issueList.length > 0) {
item.issueList.forEach(issue => {