diff --git a/frontend/src/views/case-management/caseManagementFeature/components/tabContent/tabTestPlan.vue b/frontend/src/views/case-management/caseManagementFeature/components/tabContent/tabTestPlan.vue index 1b3e7e6b6c..e58a869252 100644 --- a/frontend/src/views/case-management/caseManagementFeature/components/tabContent/tabTestPlan.vue +++ b/frontend/src/views/case-management/caseManagementFeature/components/tabContent/tabTestPlan.vue @@ -215,7 +215,9 @@ (val) => { if (val) { const selectedPlanIds: (string | undefined)[] = propsRes.value.data.map((e) => e.testPlanId) || []; - getStatistics(selectedPlanIds); + if (selectedPlanIds && selectedPlanIds.length > 0) { + getStatistics(selectedPlanIds); + } } }, {