Switched on the @typescript-eslint/no-non-null-assertion rule in eslint.
Fixed the errors it threw up.
This commit is contained in:
1 parent
c76696e022
commit
9f70ec2917
29 files changed
+144
-111
No files matched your search
@@ -67,7 +67,7 @@ export class CostCentreDetailComponent implements OnInit, AfterViewInit {
|
||||
|
||||
getItem(): CostCentre {
|
||||
const formModel = this.form.value;
|
||||
this.item.name = formModel.name!;
|
||||
this.item.name = formModel.name ?? '';
|
||||
return this.item;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user