Strict done!!

This commit is contained in:
tanshu committed 2020-11-23 16:42:54 +05:30
1 parent af343cb7f9
commit afe746ecdc
142 files changed
+1258 -907

No files matched your search

@@ -14,7 +14,7 @@ import { CostCentreService } from '../cost-centre.service';
export class CostCentreDetailComponent implements OnInit, AfterViewInit {
@ViewChild('nameElement', { static: true }) nameElement?: ElementRef;
form: FormGroup;
item: CostCentre;
item: CostCentre = new CostCentre();
constructor(
private route: ActivatedRoute,
@@ -45,7 +45,7 @@ export class CostCentreDetailComponent implements OnInit, AfterViewInit {
ngAfterViewInit() {
setTimeout(() => {
this.nameElement.nativeElement.focus();
if (this.nameElement) this.nameElement.nativeElement.focus();
}, 0);
}