From 0ee14c99868f2df32d5dc8dd709374f0a18f5b47 Mon Sep 17 00:00:00 2001 From: Sean Date: Tue, 27 Jul 2021 13:07:30 +0200 Subject: [PATCH] Fix an error where the workflow would break agenda If the projected element was null due to workflow restrictions, the agenda list would throw an error --- client/src/app/core/core-services/projector.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/app/core/core-services/projector.service.ts b/client/src/app/core/core-services/projector.service.ts index bdd209070..1c2364edc 100644 --- a/client/src/app/core/core-services/projector.service.ts +++ b/client/src/app/core/core-services/projector.service.ts @@ -76,7 +76,7 @@ export class ProjectorService { */ public isProjected(obj: Projectable | ProjectorElementBuildDeskriptor | IdentifiableProjectorElement): boolean { const element = this.getProjectorElement(obj); - if (element.getIdentifiers) { + if (element?.getIdentifiers) { return this.DS.getAll('core/projector').some(projector => { return projector.isElementShown(element); });