diff --git a/frontend/src/views/api-test/report/component/tiledList.vue b/frontend/src/views/api-test/report/component/tiledList.vue index 66e5f2bf34..d18607291e 100644 --- a/frontend/src/views/api-test/report/component/tiledList.vue +++ b/frontend/src/views/api-test/report/component/tiledList.vue @@ -109,11 +109,15 @@ (item.status && item.status === stepTypeStatus && stepTypeStatus !== 'scriptIdentifier') || (stepTypeStatus.includes('scriptIdentifier') && item.scriptIdentifier) ) { + let tempArray: ScenarioItemType[] = []; + if (!isStepChildren && item.children && item.children.length) { + tempArray = search(item.children); + } const resItem = { ...item, expanded: false, stepChildren: isStepChildren ? cloneDeep(item.children) : [], - children: isStepChildren ? [] : item.children, + children: tempArray, }; result.push(resItem); } else if (item.children && splitLevel[0] === ScenarioStepType.CUSTOM_REQUEST) {