Switched on the @typescript-eslint/no-non-null-assertion rule in eslint.

Fixed the errors it threw up.
This commit is contained in:
tanshu committed 2022-07-17 09:17:20 +05:30
1 parent c76696e022
commit 9f70ec2917
29 files changed
+144 -111

No files matched your search

@@ -107,8 +107,8 @@ export class ClientDetailComponent implements OnInit, AfterViewInit {
getItem(): Client {
const formModel = this.form.value;
this.item.name = formModel.name!;
this.item.enabled = formModel.enabled!;
this.item.name = formModel.name ?? '';
this.item.enabled = formModel.enabled ?? false;
this.item.otp = formModel.otp || undefined;
return this.item;
}