From d486f402089fe69b64c18283543a0bcc5d285ce0 Mon Sep 17 00:00:00 2001 From: Konstantinos Triantafyllou Date: Wed, 13 May 2020 12:15:25 +0000 Subject: [PATCH] [Monitor Dashboard | Trunk]: And now it is really fixed git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-monitor-portal/trunk/monitor_dashboard@58691 d315682c-612b-4755-9ff5-7f18f6832af3 --- src/app/topic/indicators.component.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/app/topic/indicators.component.ts b/src/app/topic/indicators.component.ts index 6f732b0..702b8b2 100644 --- a/src/app/topic/indicators.component.ts +++ b/src/app/topic/indicators.component.ts @@ -293,7 +293,9 @@ export class IndicatorsComponent implements OnInit, OnDestroy, OnChanges, AfterV } get charts(): Section[] { - if (this.topicIndex && this.categoryIndex && this.subcategoryIndex) { + if (this.stakeholder.topics[this.topicIndex] && + this.stakeholder.topics[this.topicIndex].categories[this.categoryIndex] && + this.stakeholder.topics[this.topicIndex].categories[this.categoryIndex].subCategories[this.subcategoryIndex]) { return this.stakeholder.topics[this.topicIndex].categories[this.categoryIndex].subCategories[this.subcategoryIndex].charts; } else { return []; @@ -305,7 +307,9 @@ export class IndicatorsComponent implements OnInit, OnDestroy, OnChanges, AfterV } get numbers(): Section[] { - if (this.topicIndex && this.categoryIndex && this.subcategoryIndex) { + if (this.stakeholder.topics[this.topicIndex] && + this.stakeholder.topics[this.topicIndex].categories[this.categoryIndex] && + this.stakeholder.topics[this.topicIndex].categories[this.categoryIndex].subCategories[this.subcategoryIndex]) { return this.stakeholder.topics[this.topicIndex].categories[this.categoryIndex].subCategories[this.subcategoryIndex].numbers; } else { return [];