diff --git a/api-test/frontend/src/business/automation/scenario/EditApiScenario.vue b/api-test/frontend/src/business/automation/scenario/EditApiScenario.vue index f85f997c98..64dc2a9673 100644 --- a/api-test/frontend/src/business/automation/scenario/EditApiScenario.vue +++ b/api-test/frontend/src/business/automation/scenario/EditApiScenario.vue @@ -1206,6 +1206,9 @@ export default { evaluationParent(node, status) { node.data.testing = false; node.data.debug = true; + if (node.parent && node.parent.data && node.parent.data.id) { + this.evaluationParent(node.parent, status); + } if (node.data.code === 'ERROR') { return; } @@ -1219,9 +1222,6 @@ export default { if (status && status === 'ERROR') { node.data.code = 'ERROR'; } - if (node.parent && node.parent.data && node.parent.data.id) { - this.evaluationParent(node.parent, status); - } }, resultEvaluationChild(arr, resourceId, status) { arr.forEach((item) => {