From ff82fceaa9eef4d70b1d79d84e93d68593ab99fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emanuel=20Sch=C3=BCtze?= Date: Mon, 25 Feb 2019 11:55:43 +0100 Subject: [PATCH] Fixed error message that viewmodel is not projectable. --- 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 1fd3935a6..8ee0687bd 100644 --- a/client/src/app/core/core-services/projector.service.ts +++ b/client/src/app/core/core-services/projector.service.ts @@ -269,7 +269,7 @@ export class ProjectorService { ): T { this.assertElementIsMappable(element); const viewModel = this.viewModelStore.get(element.name, element.id); - if (!isProjectable(viewModel)) { + if (viewModel && !isProjectable(viewModel)) { console.error('The view model is not projectable', viewModel, element); } return viewModel;