From 206d18c60aad1632b959dce0cdd2b1ba2659a4a0 Mon Sep 17 00:00:00 2001 From: "konstantina.galouni" Date: Wed, 18 Jan 2023 12:34:24 +0200 Subject: [PATCH] [Connect]: community.component.html: Remove properties.environment != 'production' check for enermaps "Featured Datasets" tab | app.component.ts: [Bug fix] Added undefined check before creating intersection observers. --- src/app/app.component.ts | 8 +++-- src/app/community/community.component.html | 36 ++++++++++++---------- src/app/openaireLibrary | 2 +- src/assets/common-assets | 2 +- src/assets/openaire-theme | 2 +- 5 files changed, 27 insertions(+), 23 deletions(-) diff --git a/src/app/app.component.ts b/src/app/app.component.ts index 01a8c2b..5fd807d 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -474,9 +474,11 @@ export class AppComponent implements OnInit, OnDestroy { restrictedData ? "" : "/myCommunities", false, [], [], {})); } this.showMenu = true; - setTimeout(() => { - this.createObservers(); - }); + if (typeof document !== "undefined") { + setTimeout(() => { + this.createObservers(); + }); + } } /** diff --git a/src/app/community/community.component.html b/src/app/community/community.component.html index 683c4a0..3251fbe 100644 --- a/src/app/community/community.component.html +++ b/src/app/community/community.component.html @@ -538,12 +538,13 @@ Ontology Mapping -
  • - - Featured Datasets ({{fetchFeaturedDatasets.searchUtils.totalResults | number}}) - -
  • +
  • + + Featured Datasets ({{fetchFeaturedDatasets.searchUtils.totalResults | number}}) + +
  • @@ -717,17 +718,18 @@ -
    -
    -
    - -
    -
    Here are listed some of the most important energy datasets as selected by energy experts.
    -
    - Check them if you want to easily explore and visualize the European energy landscape, - using only well-known datasets which you can trust. +
    +
    +
    + +
    +
    Here are listed some of the most important energy datasets as selected by energy experts.
    +
    + Check them if you want to easily explore and visualize the European energy landscape, + using only well-known datasets which you can trust.