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
This commit is contained in:
Sean 2021-07-27 13:07:30 +02:00
parent 6c01c2b99b
commit 0ee14c9986
1 changed files with 1 additions and 1 deletions

View File

@ -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<Projector>('core/projector').some(projector => {
return projector.isElementShown(element);
});