Merge pull request #4396 from emanuelschuetze/isProjectable

Fixed error message that viewmodel is not projectable.
This commit is contained in:
Emanuel Schütze 2019-02-25 15:47:06 +01:00 committed by GitHub
commit eb78c694fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -269,7 +269,7 @@ export class ProjectorService {
): T {
this.assertElementIsMappable(element);
const viewModel = this.viewModelStore.get<T>(element.name, element.id);
if (!isProjectable(viewModel)) {
if (viewModel && !isProjectable(viewModel)) {
console.error('The view model is not projectable', viewModel, element);
}
return viewModel;