fix(测试计划): 修复测试计划组不存在计划不允许生成自定义报告

This commit is contained in:
xinxin.wu 2024-07-17 18:37:05 +08:00 committed by Craftsman
parent 2829182ba3
commit 0480e75c43
1 changed files with 3 additions and 1 deletions

View File

@ -768,7 +768,9 @@
: archiveActions;
const reportAction =
planStatus !== 'ARCHIVED' && record.type === testPlanTypeEnum.GROUP ? [...configReportActions] : [];
planStatus !== 'ARCHIVED' && record.type === testPlanTypeEnum.GROUP && record.childrenCount
? [...configReportActions]
: [];
const executeHistoryAction =
record.type === testPlanTypeEnum.GROUP