fix: componentView: do not throw on inactive editors

This commit is contained in:
Baptiste Grob
2020-08-27 13:35:28 +02:00
parent fbdc0100a4
commit 814d41f9b2

View File

@@ -90,10 +90,10 @@ class ComponentViewCtrl implements ComponentViewScope {
private loadComponent() {
if (!this.component) {
throw 'Component view is missing component';
throw Error('Component view is missing component');
}
if (!this.component.active) {
throw 'Component view component must be active';
if (!this.component.active && !this.component.isEditor()) {
throw Error('Component view component must be active');
}
const iframe = this.application.componentManager!.iframeForComponent(
this.componentUuid