From 4f9f2f25057d4d0933f34488960b50286971b587 Mon Sep 17 00:00:00 2001 From: "k.triantafyllou" Date: Mon, 8 Apr 2024 18:57:49 +0300 Subject: [PATCH] [develop]: Add stats profile in form of an indicator even if it is null --- monitor-admin/topic/indicators.component.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/monitor-admin/topic/indicators.component.ts b/monitor-admin/topic/indicators.component.ts index 9be745ae..e4e4eb9d 100644 --- a/monitor-admin/topic/indicators.component.ts +++ b/monitor-admin/topic/indicators.component.ts @@ -659,6 +659,9 @@ export class IndicatorsComponent extends IndicatorStakeholderBaseComponent imple private getParametersAsFormArray(indicatorPath: IndicatorPath): UntypedFormArray { let parameters = this.fb.array([]); if (indicatorPath.parameters) { + if(!indicatorPath.parameters.statsProfile) { + indicatorPath.parameters.statsProfile = null; + } Object.keys(indicatorPath.parameters).forEach(key => { if (this.indicatorUtils.ignoredParameters.indexOf(key) === -1) { if (this.indicatorUtils.parametersValidators.has(key)) {