[develop]: Add stats profile in form of an indicator even if it is null
This commit is contained in:
parent
0111ea6681
commit
4f9f2f2505
|
@ -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)) {
|
||||
|
|
Loading…
Reference in New Issue