diff --git a/frontend/src/business/components/api/automation/scenario/component/ApiScenarioComponent.vue b/frontend/src/business/components/api/automation/scenario/component/ApiScenarioComponent.vue index 8d2fc5e00b..af47b66f4f 100644 --- a/frontend/src/business/components/api/automation/scenario/component/ApiScenarioComponent.vue +++ b/frontend/src/business/components/api/automation/scenario/component/ApiScenarioComponent.vue @@ -148,9 +148,10 @@ return parentId ? parentId : this.$store.state.projectId; } else { const project = this.projectList.find(p => p.id === projectId); - if (!project) { - return parentId ? parentId : this.$store.state.projectId; + if (project) { + return projectId; } + return parentId ? parentId : this.$store.state.projectId; } }, getProjectName(id) {