From 47b177011180ebd6bb39a3978952f5e3f6c4cf4e Mon Sep 17 00:00:00 2001 From: Konstantinos Triantafyllou Date: Thu, 5 Nov 2020 10:06:50 +0000 Subject: [PATCH] [Monitor Dashboard]: Number indicatos add if it is number or string show number git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-monitor-portal/trunk/monitor_dashboard@59783 d315682c-612b-4755-9ff5-7f18f6832af3 --- src/app/topic/indicators.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/topic/indicators.component.ts b/src/app/topic/indicators.component.ts index 90738da..ab736f0 100644 --- a/src/app/topic/indicators.component.ts +++ b/src/app/topic/indicators.component.ts @@ -171,7 +171,7 @@ export class IndicatorsComponent implements OnInit, OnDestroy, OnChanges, AfterV result = result[jsonPath]; } }); - if (typeof result == 'string') { + if (typeof result == 'string' || typeof result == 'number') { this.numberResults.set(i + '-' + j, Number(result)); } });