fix(测试跟踪): 脑图中用例关联缺陷双击报错问题

--bug=1016238 --user=宋昌昌 【测试跟踪】测试计划-脑图中关联缺陷后-保存-双击缺陷ID 提示错误信息,无法查看缺陷 https://www.tapd.cn/55049933/s/1232537
This commit is contained in:
song-cc-rock 2022-08-24 15:58:40 +08:00 committed by 刘瑞斌
parent 9d8f7bf557
commit e0cc245597
1 changed files with 5 additions and 1 deletions

View File

@ -201,7 +201,11 @@ name: "TestCaseMinder",
}
if (node.data.type === 'issue') {
getIssuesListById(node.data.id, this.projectId,this.workspaceId,(data) => {
data.customFields = JSON.parse(data.customFields);
if (data.customFields && data.customFields.toString().trim() !== '') {
data.customFields = JSON.parse(data.customFields);
} else {
data.customFields = null;
}
this.$refs.issueEdit.open(data);
});
}