chore: componentView add isEditor() comment

This commit is contained in:
Baptiste Grob
2020-08-27 17:08:32 +02:00
parent 814d41f9b2
commit 632072e12a

View File

@@ -93,6 +93,7 @@ class ComponentViewCtrl implements ComponentViewScope {
throw Error('Component view is missing component');
}
if (!this.component.active && !this.component.isEditor()) {
/** Editors don't need to be active to be displayed */
throw Error('Component view component must be active');
}
const iframe = this.application.componentManager!.iframeForComponent(