From 8c9a1a21910d190c0719114ef7299a1c8ca30b62 Mon Sep 17 00:00:00 2001 From: tanshu Date: Tue, 12 Jun 2018 11:52:23 +0530 Subject: [PATCH] Fix: Account save error --- .../src/app/account/account-detail/account-detail.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/overlord/src/app/account/account-detail/account-detail.component.ts b/overlord/src/app/account/account-detail/account-detail.component.ts index 53b72c4c..5afbc2fa 100644 --- a/overlord/src/app/account/account-detail/account-detail.component.ts +++ b/overlord/src/app/account/account-detail/account-detail.component.ts @@ -112,7 +112,7 @@ export class AccountDetailComponent implements OnInit, AfterViewInit { getItem(): Account { const formModel = this.form.value; this.item.name = formModel.name; - this.item.type.id = formModel.type; + this.item.type = formModel.type; this.item.isActive = formModel.isActive; this.item.isReconcilable = formModel.isReconcilable; this.item.costCentre.id = formModel.costCentre;