diff --git a/console/src/app/directives/has-role/has-role.directive.ts b/console/src/app/directives/has-role/has-role.directive.ts index 65e6a4fe177..e52a2c2548b 100644 --- a/console/src/app/directives/has-role/has-role.directive.ts +++ b/console/src/app/directives/has-role/has-role.directive.ts @@ -17,11 +17,6 @@ export class HasRoleDirective { this.hasView = false; } }); - } else { - if (!this.hasView) { - this.viewContainerRef.clear(); - this.viewContainerRef.createEmbeddedView(this.templateRef); - } } }