From 632072e12afa320808078b5bb407ce07874c9aa0 Mon Sep 17 00:00:00 2001 From: Baptiste Grob <60621355+baptiste-grob@users.noreply.github.com> Date: Thu, 27 Aug 2020 17:08:32 +0200 Subject: [PATCH] chore: componentView add isEditor() comment --- app/assets/javascripts/directives/views/componentView.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/app/assets/javascripts/directives/views/componentView.ts b/app/assets/javascripts/directives/views/componentView.ts index ec0a247a7..8cd729301 100644 --- a/app/assets/javascripts/directives/views/componentView.ts +++ b/app/assets/javascripts/directives/views/componentView.ts @@ -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(