diff --git a/client/src/pages/learningPath/circlePage/CirclePage.vue b/client/src/pages/learningPath/circlePage/CirclePage.vue index cb65966f..274f23dd 100644 --- a/client/src/pages/learningPath/circlePage/CirclePage.vue +++ b/client/src/pages/learningPath/circlePage/CirclePage.vue @@ -97,13 +97,26 @@ const { data: mentors } = useCSRFFetch( `/api/mentor/${courseSession.value.id}/mentors` ).json(); -const expert = computed(() => { +interface Expert { + id: string; + email: string; + avatar_url: string; + first_name: string; + last_name: string; +} + +interface Mentor { + id: number; + mentor: Expert; +} + +const experts = computed(() => { if (courseConfig.value.showContact) { if (lpQueryResult.course.value?.circle_contact_type === "EXPERT") { - return circleExperts.value[0]; + return circleExperts.value; } else if (lpQueryResult.course.value?.circle_contact_type === "LEARNING_MENTOR") { if (mentors.value?.length > 0) { - return mentors.value[0].mentor; + return mentors.value.map((m: Mentor) => m.mentor); } } } @@ -246,23 +259,27 @@ watch( }) }} - + diff --git a/client/src/pages/learningPath/learningContentPage/blocks/IframeBlock.vue b/client/src/pages/learningPath/learningContentPage/blocks/IframeBlock.vue index 19bd2639..82664498 100644 --- a/client/src/pages/learningPath/learningContentPage/blocks/IframeBlock.vue +++ b/client/src/pages/learningPath/learningContentPage/blocks/IframeBlock.vue @@ -10,12 +10,7 @@ const props = defineProps<{