diff --git a/frontend/src/business/components/api/automation/scenario/EditApiScenario.vue b/frontend/src/business/components/api/automation/scenario/EditApiScenario.vue
index f9c297d53d..6480dc2e7d 100644
--- a/frontend/src/business/components/api/automation/scenario/EditApiScenario.vue
+++ b/frontend/src/business/components/api/automation/scenario/EditApiScenario.vue
@@ -1652,7 +1652,7 @@ export default {
}else if(data.refType==='CASE'){
funcs.push(this.getApiTestCaseNumById(data.id));
}
- }else {
+ }else if(data.type==='scenario') {
funcs.push(this.getScenarioNumById(data.id));
}
}
diff --git a/frontend/src/business/components/api/automation/scenario/component/ApiComponent.vue b/frontend/src/business/components/api/automation/scenario/component/ApiComponent.vue
index 0bf724e10b..3a5098084e 100644
--- a/frontend/src/business/components/api/automation/scenario/component/ApiComponent.vue
+++ b/frontend/src/business/components/api/automation/scenario/component/ApiComponent.vue
@@ -17,7 +17,7 @@
- {{"( ID: "+request.num+")"}}
+ {{"( ID: "+request.num+")"}}