Merge pull request #6185 from tsiegleauq/agenda-list-error

Fix an error where the workflow would break agenda
This commit is contained in:
Emanuel Schütze 2021-07-27 14:31:34 +02:00 committed by GitHub
commit c48658210b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -76,7 +76,7 @@ export class ProjectorService {
*/ */
public isProjected(obj: Projectable | ProjectorElementBuildDeskriptor | IdentifiableProjectorElement): boolean { public isProjected(obj: Projectable | ProjectorElementBuildDeskriptor | IdentifiableProjectorElement): boolean {
const element = this.getProjectorElement(obj); const element = this.getProjectorElement(obj);
if (element.getIdentifiers) { if (element?.getIdentifiers) {
return this.DS.getAll<Projector>('core/projector').some(projector => { return this.DS.getAll<Projector>('core/projector').some(projector => {
return projector.isElementShown(element); return projector.isElementShown(element);
}); });