diff --git a/client/src/pages/learningPath/circlePage/CirclePage.vue b/client/src/pages/learningPath/circlePage/CirclePage.vue index f90af627..cb65966f 100644 --- a/client/src/pages/learningPath/circlePage/CirclePage.vue +++ b/client/src/pages/learningPath/circlePage/CirclePage.vue @@ -102,7 +102,9 @@ const expert = computed(() => { if (lpQueryResult.course.value?.circle_contact_type === "EXPERT") { return circleExperts.value[0]; } else if (lpQueryResult.course.value?.circle_contact_type === "LEARNING_MENTOR") { - return mentors.value?.[0].mentor; + if (mentors.value?.length > 0) { + return mentors.value[0].mentor; + } } } return null;