diff --git a/resources/vue/components/courseware/structural-element/CoursewareTree.vue b/resources/vue/components/courseware/structural-element/CoursewareTree.vue index 915f2e340cc009dc79e99dd48824063bd9920138..33aa41a528ba98fa19d6128a30d0d3ae5d491d81 100644 --- a/resources/vue/components/courseware/structural-element/CoursewareTree.vue +++ b/resources/vue/components/courseware/structural-element/CoursewareTree.vue @@ -256,8 +256,10 @@ export default { mounted() { this.updateNestedChildren(); const parent = { type: 'courses', id: this.context.id }; - this.loadCourseMemberships({ parent, relationship: 'memberships', options: {'page[limit]': 10000 } }); - this.loadCourseStatusGroups({ parent, relationship: 'status-groups' }); + if (this.context.type === 'courses') { + this.loadCourseMemberships({ parent, relationship: 'memberships', options: {'page[limit]': 10000 } }); + this.loadCourseStatusGroups({ parent, relationship: 'status-groups' }); + } }, watch: { structuralElements() {