Merge pull request #4396 from emanuelschuetze/isProjectable
Fixed error message that viewmodel is not projectable.
This commit is contained in:
commit
eb78c694fc
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user