funds: clear destination fund properly
authorGalen Charlton <gmc@equinoxOLI.org>
Mon, 7 Jun 2021 15:08:52 +0000 (11:08 -0400)
committerGalen Charlton <gmc@equinoxOLI.org>
Mon, 7 Jun 2021 15:08:52 +0000 (11:08 -0400)
LH#32

Signed-off-by: Galen Charlton <gmc@equinoxOLI.org>
Open-ILS/src/eg2/src/app/staff/admin/acq/funds/fund-transfer-dialog.component.ts

index 3b03c96..8b45fc4 100644 (file)
@@ -79,7 +79,8 @@ export class FundTransferDialogComponent
 
     private _initRecord() {
         this.doneLoading = false;
-        this.destFund = null;
+        this.destFund = { id: null }; // destFund is a ComoboxEntry, so
+                                      // we need to clear it like this
         this.sourceAmount = null;
         this.note = null;
         this.doneLoading = true;