Skip to content
Snippets Groups Projects
Verified Commit 9179f9d0 authored by Hermann's avatar Hermann Committed by Sandro Lutz
Browse files

bugfix if department is not set

parent 0012d193
No related branches found
No related tags found
1 merge request!43Changes to studydocuments
......@@ -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) => {
......
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