[develop]: Add stats profile in form of an indicator even if it is null

This commit is contained in:
Konstantinos Triantafyllou 2024-04-08 18:57:49 +03:00
parent 0111ea6681
commit 4f9f2f2505
1 changed files with 3 additions and 0 deletions

View File

@ -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)) {