|
@ -114,6 +114,7 @@ export class CreateOrUpdateAccountDialog implements OnDestroy { |
|
|
platformId: this.accountForm.controls['platformId'].value?.id ?? null |
|
|
platformId: this.accountForm.controls['platformId'].value?.id ?? null |
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
try { |
|
|
if (this.data.account.id) { |
|
|
if (this.data.account.id) { |
|
|
(account as UpdateAccountDto).id = this.data.account.id; |
|
|
(account as UpdateAccountDto).id = this.data.account.id; |
|
|
|
|
|
|
|
@ -133,6 +134,9 @@ export class CreateOrUpdateAccountDialog implements OnDestroy { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
this.dialogRef.close({ account }); |
|
|
this.dialogRef.close({ account }); |
|
|
|
|
|
} catch (error) { |
|
|
|
|
|
console.error(error); |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
public ngOnDestroy() { |
|
|
public ngOnDestroy() { |
|
|