Skip to content
Snippets Groups Projects
Commit 05cfdb67 authored by Ron Lucke's avatar Ron Lucke Committed by Jan-Hendrik Willms
Browse files

fix #2771

Closes #2771

Merge request studip/studip!1880
parent 8fb1e71b
No related branches found
No related tags found
No related merge requests found
......@@ -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 {
......
......@@ -329,7 +329,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 {
......
......@@ -314,7 +314,7 @@ export const actions = {
return items
.filter(({ membership, course }) => {
return course.relationships.courseware;
return course.relationships.courseware.data;
})
.map(({ course }) => course);
......
......@@ -1093,7 +1093,7 @@ export const actions = {
return items
.filter(({ membership, course }) => {
return course.relationships.courseware;
return course.relationships.courseware.data;
})
.map(({ course }) => course);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment