diff --git a/src/app/app.component.ts b/src/app/app.component.ts index aab6bab..b62a7f0 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -271,12 +271,12 @@ export class AppComponent implements OnInit, OnDestroy { initAdminToolCommunity(communityId) { if (communityId) { this.properties.adminToolsPortalType = "community"; - if (typeof document === 'undefined') { + if (this.document) { this.initLayout(communityId); } }else{ this.properties.adminToolsPortalType = "connect"; - if (typeof document === 'undefined') { + if (this.document) { this.initLayout('connect'); } } diff --git a/src/app/openaireLibrary b/src/app/openaireLibrary index 2b83920..e6974df 160000 --- a/src/app/openaireLibrary +++ b/src/app/openaireLibrary @@ -1 +1 @@ -Subproject commit 2b83920bc46f634921aeae2d7a05e49608047cb7 +Subproject commit e6974dfd0f989955999f7ccffa19e2e266867723