[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
This commit is contained in:
Konstantinos Triantafyllou 2020-05-13 12:15:25 +00:00
parent 2fc7648980
commit d486f40208
1 changed files with 6 additions and 2 deletions

View File

@ -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 [];