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 {
|
): T {
|
||||||
this.assertElementIsMappable(element);
|
this.assertElementIsMappable(element);
|
||||||
const viewModel = this.viewModelStore.get<T>(element.name, element.id);
|
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);
|
console.error('The view model is not projectable', viewModel, element);
|
||||||
}
|
}
|
||||||
return viewModel;
|
return viewModel;
|
||||||
|
Loading…
Reference in New Issue
Block a user