fix(测试跟踪): 功能用例没有用例等级脑图加载报错

--bug=1016684 --user=陈建星 【测试跟踪】功能用例-脑图,点击未规划模块会报错 https://www.tapd.cn/55049933/s/1241258
This commit is contained in:
chenjianxing 2022-09-09 14:29:17 +08:00 committed by jianxing
parent f47a2ae3d4
commit 5e26be97a1
1 changed files with 1 additions and 1 deletions

View File

@ -245,7 +245,7 @@ export function appendCase(parent, item, isDisable, setParamCallback) {
let caseData = {
id: item.id,
text: item.name,
priority: Number.parseInt(item.priority.substring(item.priority.length - 1 )) + 1,
priority: item.priority ? Number.parseInt(item.priority.substring(item.priority.length - 1 )) + 1 : null,
resource: [i18n.t('api_test.definition.request.case')],
type: 'case',
method: item.method,