LP1929741 Clear previous PO on new PO create
authorBill Erickson <berickxx@gmail.com>
Tue, 22 Jun 2021 20:18:18 +0000 (16:18 -0400)
committerBill Erickson <berickxx@gmail.com>
Tue, 13 Jul 2021 20:48:22 +0000 (16:48 -0400)
Signed-off-by: Bill Erickson <berickxx@gmail.com>
Open-ILS/src/eg2/src/app/staff/acq/po/create.component.ts

index fc287f2..b0b3314 100644 (file)
@@ -46,6 +46,8 @@ export class PoCreateComponent implements OnInit {
     ) {}
 
     ngOnInit() {
+        this.poService.currentPo = null;
+
         this.route.queryParamMap.subscribe((params: ParamMap) => {
             this.lineitems = params.getAll('li').map(id => Number(id));
         });