LP1929741 Clear previous PO on new PO create
authorBill Erickson <berickxx@gmail.com>
Tue, 22 Jun 2021 20:18:18 +0000 (16:18 -0400)
committerJane Sandberg <js7389@princeton.edu>
Sun, 2 Oct 2022 15:02:49 +0000 (08:02 -0700)
Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Galen Charlton <gmc@equinoxOLI.org>
Signed-off-by: Jane Sandberg <js7389@princeton.edu>
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));
         });