From 4ac5d1dbc25b834d1f2b4e9b5899790390f9d4e6 Mon Sep 17 00:00:00 2001 From: FinnStutzenstein Date: Wed, 19 Jun 2019 09:15:07 +0200 Subject: [PATCH] Fixed clos --- .../site/projector/services/current-agenda-item.service.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/src/app/site/projector/services/current-agenda-item.service.ts b/client/src/app/site/projector/services/current-agenda-item.service.ts index 76f091946..e66201d30 100644 --- a/client/src/app/site/projector/services/current-agenda-item.service.ts +++ b/client/src/app/site/projector/services/current-agenda-item.service.ts @@ -7,7 +7,7 @@ import { ViewProjector } from '../models/view-projector'; import { ProjectorRepositoryService } from 'app/core/repositories/projector/projector-repository.service'; import { SlideManager } from 'app/slides/services/slide-manager.service'; import { ViewListOfSpeakers } from 'app/site/agenda/models/view-list-of-speakers'; -import { BaseViewModelWithListOfSpeakers } from 'app/site/base/base-view-model-with-list-of-speakers'; +import { isBaseViewModelWithListOfSpeakers } from 'app/site/base/base-view-model-with-list-of-speakers'; /** * Observes the projector config for a given projector and returns a observable of the @@ -62,7 +62,7 @@ export class CurrentListOfSpeakersService { const nonStableElement = this.slideManager.getIdentifialbeProjectorElement(nonStableElements[0]); // The normal case is just one non stable slide try { const viewModel = this.projectorService.getViewModelFromProjectorElement(nonStableElement); - if (viewModel instanceof BaseViewModelWithListOfSpeakers) { + if (isBaseViewModelWithListOfSpeakers(viewModel)) { return viewModel.listOfSpeakers; } } catch (e) {