Fix projector subtitles for items without agenda items

This commit is contained in:
FinnStutzenstein 2020-05-13 16:17:36 +02:00 committed by Emanuel Schütze
parent b7b27d2e88
commit 34d85c996c

View File

@ -67,7 +67,7 @@ export abstract class BaseViewModelWithAgendaItem<
* Appends the agneda item comment as the subtitle, if this model has an agenda item * Appends the agneda item comment as the subtitle, if this model has an agenda item
*/ */
public getProjectorTitle(): ProjectorTitle { public getProjectorTitle(): ProjectorTitle {
const subtitle = this.item.comment || null; const subtitle = this.item ? this.item.comment : null;
return { title: this.getTitle(), subtitle }; return { title: this.getTitle(), subtitle };
} }