Merge pull request #5369 from FinnStutzenstein/fixProjectorSubtitle
Fix projector subtitles for items without agenda items
This commit is contained in:
commit
8058a4d695
@ -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 };
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user