From 27511be14e272bae0e6e66dfd79660f0023c941f Mon Sep 17 00:00:00 2001 From: "k.triantafyllou" Date: Wed, 24 May 2023 14:31:50 +0300 Subject: [PATCH] App component: Check this.document instead of client document. --- src/app/app.component.ts | 4 ++-- src/app/openaireLibrary | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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