Chore:
Moved to sqlalchemy 2.0 Added type checking as much as possible Updated angular to 15 Moved from Angular flex layout to tailwind css Started developing on vscode with devcontainers
This commit is contained in:
@ -58,8 +58,9 @@ export class DiscountComponent {
|
||||
const array = this.form.get('discounts') as UntypedFormArray;
|
||||
for (let i = this.list.length - 1; i >= 0; i--) {
|
||||
const item = this.list[i];
|
||||
const control = (array.controls[i] as UntypedFormGroup).controls
|
||||
.discount as UntypedFormControl;
|
||||
const control = (array.controls[i] as UntypedFormGroup).controls[
|
||||
'discount'
|
||||
] as UntypedFormControl;
|
||||
if (
|
||||
control.value === null ||
|
||||
control.value === '' ||
|
||||
|
||||
Reference in New Issue
Block a user