From 34d85c996c2a2003ad9f38da86abd70fad2f1595 Mon Sep 17 00:00:00 2001 From: FinnStutzenstein Date: Wed, 13 May 2020 16:17:36 +0200 Subject: [PATCH] Fix projector subtitles for items without agenda items --- client/src/app/site/base/base-view-model-with-agenda-item.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/app/site/base/base-view-model-with-agenda-item.ts b/client/src/app/site/base/base-view-model-with-agenda-item.ts index 3b52dfdae..6f9af9e3c 100644 --- a/client/src/app/site/base/base-view-model-with-agenda-item.ts +++ b/client/src/app/site/base/base-view-model-with-agenda-item.ts @@ -67,7 +67,7 @@ export abstract class BaseViewModelWithAgendaItem< * Appends the agneda item comment as the subtitle, if this model has an agenda item */ public getProjectorTitle(): ProjectorTitle { - const subtitle = this.item.comment || null; + const subtitle = this.item ? this.item.comment : null; return { title: this.getTitle(), subtitle }; }