diff --git a/dmp-frontend/src/app/ui/description/editor/form-progress-indication/form-progress-indication.component.ts b/dmp-frontend/src/app/ui/description/editor/form-progress-indication/form-progress-indication.component.ts index 0c0453c40..d73319008 100644 --- a/dmp-frontend/src/app/ui/description/editor/form-progress-indication/form-progress-indication.component.ts +++ b/dmp-frontend/src/app/ui/description/editor/form-progress-indication/form-progress-indication.component.ts @@ -66,7 +66,7 @@ export class FormProgressIndicationComponent extends BaseComponent implements On return valueCurrent; } - countRequiredFieldsByFieldset(ordinal: number, fieldsFormGroup: UntypedFormGroup, filterValid: boolean = false): number { + countRequiredFieldsByFieldset(ordinal: number, fieldsFormGroup: UntypedFormGroup, filterValid: boolean = false): number { let fieldsCount: number = 0; const fieldNames = Object.keys(fieldsFormGroup.controls); for(let item of fieldNames) { @@ -207,7 +207,9 @@ export class FormProgressIndicationComponent extends BaseComponent implements On if (validator && validator.required) { return true; } - } else { return false } + } + + return false; } controlEnabled(formControl: AbstractControl) {