Skip to content
Snippets Groups Projects
Commit 2c91e293 authored by Dominik Seeger's avatar Dominik Seeger
Browse files

fixed matrikelNr not getting applied correctly

parent cb2b812b
No related branches found
No related tags found
1 merge request!128Merge improve testing
Pipeline #86785 failed
......@@ -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}`,
......
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