fix: VV course access without mentor
This commit is contained in:
parent
233d052391
commit
5f9cd205e5
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue