App component: Check this.document instead of client document.

This commit is contained in:
Konstantinos Triantafyllou 2023-05-24 14:31:50 +03:00
parent c9d02ebcd7
commit 27511be14e
2 changed files with 3 additions and 3 deletions

View File

@ -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');
}
}

@ -1 +1 @@
Subproject commit 2b83920bc46f634921aeae2d7a05e49608047cb7
Subproject commit e6974dfd0f989955999f7ccffa19e2e266867723