From 9f60e208ce3e30e6db380275ed5de9d2c35f57a7 Mon Sep 17 00:00:00 2001 From: Ron Lucke <lucke@elan-ev.de> Date: Tue, 27 Jun 2023 10:56:41 +0000 Subject: [PATCH] fix #2771 Closes #2771 Merge request studip/studip!1880 --- .../vue/components/courseware/CoursewareShelfDialogCopy.vue | 2 +- .../courseware/CoursewareStructuralElementDialogCopy.vue | 2 +- resources/vue/store/courseware/courseware-shelf.module.js | 2 +- resources/vue/store/courseware/courseware.module.js | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/resources/vue/components/courseware/CoursewareShelfDialogCopy.vue b/resources/vue/components/courseware/CoursewareShelfDialogCopy.vue index 1010d9b3349..12515118a12 100644 --- a/resources/vue/components/courseware/CoursewareShelfDialogCopy.vue +++ b/resources/vue/components/courseware/CoursewareShelfDialogCopy.vue @@ -261,7 +261,7 @@ export default { return this.selectedUnitElement.attributes.payload.description ?? ''; }, filteredCourses() { - const courses = this.courses.filter((course) => { return course.id !== this.context.id}); + const courses = this.courses.filter((course) => { return course.id !== this.context.id }); if (this.selectedSemester === 'all') { return courses; } else { diff --git a/resources/vue/components/courseware/CoursewareStructuralElementDialogCopy.vue b/resources/vue/components/courseware/CoursewareStructuralElementDialogCopy.vue index f961f5717ca..20e9b0e5336 100644 --- a/resources/vue/components/courseware/CoursewareStructuralElementDialogCopy.vue +++ b/resources/vue/components/courseware/CoursewareStructuralElementDialogCopy.vue @@ -300,7 +300,7 @@ export default { .filter(Boolean); }, filteredCourses() { - const courses = this.courses.filter((course) => { return course.id !== this.context.id}); + const courses = this.courses.filter((course) => { return course.id !== this.context.id }); if (this.selectedSemester === 'all') { return courses; } else { diff --git a/resources/vue/store/courseware/courseware-shelf.module.js b/resources/vue/store/courseware/courseware-shelf.module.js index 9d8e80f6b80..0eb95fde43b 100644 --- a/resources/vue/store/courseware/courseware-shelf.module.js +++ b/resources/vue/store/courseware/courseware-shelf.module.js @@ -314,7 +314,7 @@ export const actions = { return items .filter(({ membership, course }) => { - return course.relationships.courseware; + return course.relationships.courseware.data; }) .map(({ course }) => course); diff --git a/resources/vue/store/courseware/courseware.module.js b/resources/vue/store/courseware/courseware.module.js index 9669a6138b1..64e65ce8f5f 100644 --- a/resources/vue/store/courseware/courseware.module.js +++ b/resources/vue/store/courseware/courseware.module.js @@ -1120,7 +1120,7 @@ export const actions = { return items .filter(({ membership, course }) => { - return course.relationships.courseware; + return course.relationships.courseware.data; }) .map(({ course }) => course); -- GitLab