Fix projector subtitles for items without agenda items
This commit is contained in:
parent
b7b27d2e88
commit
34d85c996c
@ -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