Remove dev condition for relatedTo component

This commit is contained in:
Alex Martzios 2021-11-24 16:52:58 +02:00
parent de6c91cbab
commit 130691b60a
1 changed files with 41 additions and 43 deletions

View File

@ -11,7 +11,7 @@ import {HelperFunctions} from "../../utils/HelperFunctions.class";
@Component({
selector: 'relatedTo',
template: `
<div class="sideInfoTitle">
<div *ngIf="(gateways && gateways.length > 0) || (otherCommunities && otherCommunities.length > 0)" class="sideInfoTitle">
<span>Communities</span>
</div>
<!-- If there are any communities with dashboard -->
@ -169,7 +169,6 @@ export class RelatedToComponent implements OnInit {
ngOnInit() {
this.contexts.sort(this.compare);
if(properties.environment === "development") {
let index = 0;
this.contexts.forEach( context => {
if(context.idContext) {
@ -215,7 +214,6 @@ export class RelatedToComponent implements OnInit {
}
});
}
}
ngOnDestroy() {
this.subscriptions.forEach(subscription => {