diff --git a/app/assets/javascripts/directives/views/componentView.ts b/app/assets/javascripts/directives/views/componentView.ts index 3385b0de8..ec0a247a7 100644 --- a/app/assets/javascripts/directives/views/componentView.ts +++ b/app/assets/javascripts/directives/views/componentView.ts @@ -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