From 2c91e2937e8f39e67b2062adbcf0fbac341f4698 Mon Sep 17 00:00:00 2001 From: Dominik Seeger <dominik.seeger@gmx.net> Date: Sun, 6 Jan 2019 20:38:50 +0100 Subject: [PATCH] fixed matrikelNr not getting applied correctly --- frontend/src/components/export/DataExport.vue | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/frontend/src/components/export/DataExport.vue b/frontend/src/components/export/DataExport.vue index 8fd23f31..6b4d0dc5 100644 --- a/frontend/src/components/export/DataExport.vue +++ b/frontend/src/components/export/DataExport.vue @@ -70,14 +70,10 @@ export default class DataExport extends Mixins(exportMixin) { get studentMap () { return getters.state.studentMap } applyMapping (studentExport: StudentExportItem[]) { - console.log(studentExport) studentExport.forEach(student => { if (this.studentMap[student.Matrikel]) { - student = { - ...student, - Matrikel: this.studentMap[student.Matrikel].matrikelNo, - Name: this.studentMap[student.Matrikel].name - } + student.Name = this.studentMap[student.Matrikel].name + student.Matrikel = this.studentMap[student.Matrikel].matrikelNo } else { this.$notify({ title: `Unknown student: ${student.Name}`, -- GitLab