Skip to content

Commit 15fbbdb

Browse files
author
Néstor Diaz
authored
Show the correct number of errors in study components (#573)
1 parent 98760eb commit 15fbbdb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/app/submission/submission-edit/shared/model/form-base.model.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export class FormBase {
3333
}
3434

3535
invalidControls(): FormControl[] {
36-
return this.controls().filter((control) => control.invalid);
36+
return this.controls().filter((control) => !control.valid);
3737
}
3838

3939
private onStatusChanges(): void {

0 commit comments

Comments
 (0)