From c13d03fe099faf4495ff2c7f1381f027e0330639 Mon Sep 17 00:00:00 2001 From: Thomas Kaul <4159106+dtslvr@users.noreply.github.com> Date: Sun, 14 Apr 2024 17:54:05 +0200 Subject: [PATCH] Refactoring --- .../create-or-update-account-dialog.component.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/client/src/app/pages/accounts/create-or-update-account-dialog/create-or-update-account-dialog.component.ts b/apps/client/src/app/pages/accounts/create-or-update-account-dialog/create-or-update-account-dialog.component.ts index 255e603de..f4e23df6a 100644 --- a/apps/client/src/app/pages/accounts/create-or-update-account-dialog/create-or-update-account-dialog.component.ts +++ b/apps/client/src/app/pages/accounts/create-or-update-account-dialog/create-or-update-account-dialog.component.ts @@ -116,6 +116,7 @@ export class CreateOrUpdateAccountDialog implements OnDestroy { if (this.data.account.id) { (account as UpdateAccountDto).id = this.data.account.id; + await validateObjectForForm({ classDto: UpdateAccountDto, form: this.accountForm, @@ -123,6 +124,7 @@ export class CreateOrUpdateAccountDialog implements OnDestroy { }); } else { delete (account as CreateAccountDto).id; + await validateObjectForForm({ classDto: CreateAccountDto, form: this.accountForm,