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:
parent
6c01c2b99b
commit
0ee14c9986
|
@ -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);
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue