fix: componentView: do not throw on inactive editors
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user