diff --git a/frontend/src/business/components/track/case/components/TestCaseScenarioRelate.vue b/frontend/src/business/components/track/case/components/TestCaseScenarioRelate.vue index b12851d0a5..c349578f9b 100644 --- a/frontend/src/business/components/track/case/components/TestCaseScenarioRelate.vue +++ b/frontend/src/business/components/track/case/components/TestCaseScenarioRelate.vue @@ -70,7 +70,9 @@ export default { open() { this.init(); this.$refs.baseRelevance.open(); - this.$refs.apiCaseList.clear(); + if (this.$refs.apiCaseList) { + this.$refs.apiCaseList.clear(); + } }, init() { if (this.$refs.apiCaseList) {