To receive notifications about scheduled maintenance, please subscribe to the mailing-list gitlab-operations@sympa.ethz.ch. You can subscribe to the mailing-list at https://sympa.ethz.ch

Verified Commit 9179f9d0 authored by Hermann's avatar Hermann Committed by Sandro Lutz
Browse files

bugfix if department is not set

parent 0012d193
......@@ -15,7 +15,7 @@ export default class StudydocTable {
getItemData(data) {
return [
m('div', { style: { width: 'calc(100% - 32em)' } }, data.title),
m('div', { style: { width: '6em' } }, data.department.toUpperCase()),
m('div', { style: { width: '6em' } }, data.department && data.department.toUpperCase()),
m('div', { style: { width: '6em' } }, data.semester),
m('div', { style: { width: '10em' } }, data.lecture),
m('div', { style: { width: '10em' } }, data.files.map((file) => {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment