Input: Fix errors when searchInput doesn't exists.

This commit is contained in:
Konstantinos Triantafyllou 2023-07-14 18:27:16 +03:00
parent 5645deec97
commit 55a0454330
1 changed files with 3 additions and 1 deletions

View File

@ -530,8 +530,10 @@ export class InputComponent implements OnInit, OnDestroy, AfterViewInit, OnChang
?this.getFormByName(this.yearRange.from.control).errors:this.getFormByName(this.yearRange.to.control).errors));
} else if(this.formAsControl) {
return this.formAsControl.errors;
} else {
} else if(this.searchControl) {
return this.searchControl.errors;
} else {
return null;
}
}