Merge pull request #5369 from FinnStutzenstein/fixProjectorSubtitle

Fix projector subtitles for items without agenda items
This commit is contained in:
Emanuel Schütze 2020-05-14 08:20:55 +02:00 committed by GitHub
commit 8058a4d695
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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 };
} }