From f7eca3844d7e210ac2d1e099d0a030e29f89e135 Mon Sep 17 00:00:00 2001 From: Wolfgang Hottgenroth Date: Fri, 1 Apr 2022 16:31:43 +0200 Subject: [PATCH] fix concerning FormControl --- ui/hv2-ui/src/app/account/account.component.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ui/hv2-ui/src/app/account/account.component.ts b/ui/hv2-ui/src/app/account/account.component.ts index a74a98b..129e39e 100644 --- a/ui/hv2-ui/src/app/account/account.component.ts +++ b/ui/hv2-ui/src/app/account/account.component.ts @@ -155,6 +155,9 @@ export class AccountComponent implements OnInit { this.presetDescription = new FormControl("Miete") this.messageService.add(`shall be rentpayment`) this.messageService.add(`AccountComponent.init d, account: ${this.selectedAccountId}`) + } else { + this.presetCategory = new FormControl() + this.presetDescription = new FormControl() } this.messageService.add(`AccountComponent.init, account: ${this.selectedAccountId}`)