diff --git a/public/js/components/Cis/Abgabetool/AbgabetoolStudent.js b/public/js/components/Cis/Abgabetool/AbgabetoolStudent.js index 1ac9ad912..7a8482a3f 100644 --- a/public/js/components/Cis/Abgabetool/AbgabetoolStudent.js +++ b/public/js/components/Cis/Abgabetool/AbgabetoolStudent.js @@ -16,9 +16,9 @@ export const AbgabetoolStudent = { viewData: { type: Object, required: true, - default: () => ({name: '', uid: ''}), + default: () => ({uid: ''}), validator(value) { - return value && value.name && value.uid + return value && value.uid } } }, @@ -186,7 +186,7 @@ export const AbgabetoolStudent = { this.$refs.abgabeTable.tabulator.setData(d); }, loadProjektarbeiten() { - this.$fhcApi.factory.lehre.getStudentProjektarbeiten(this.student_uid_prop ?? this.viewData?.uid ?? null) + this.$fhcApi.factory.lehre.getStudentProjektarbeiten(this.student_uid_prop || this.viewData?.uid || null) .then(res => { if(res?.data) this.setupData(res.data) })