LP#1775466 WS admin page workstations sanity check
authorBill Erickson <berickxx@gmail.com>
Thu, 9 Aug 2018 18:22:11 +0000 (14:22 -0400)
committerBill Erickson <berickxx@gmail.com>
Thu, 9 Aug 2018 18:22:11 +0000 (14:22 -0400)
Signed-off-by: Bill Erickson <berickxx@gmail.com>
Open-ILS/src/eg2/src/app/staff/admin/workstation/workstations/workstations.component.ts

index 9fb0d7e..f4f3b83 100644 (file)
@@ -50,7 +50,7 @@ export class WorkstationsComponent implements OnInit {
     ) {}
 
     ngOnInit() {
-        this.workstations = this.store.getLocalItem('eg.workstation.all');
+        this.workstations = this.store.getLocalItem('eg.workstation.all') || [];
         this.defaultName = this.store.getLocalItem('eg.workstation.default');
         this.selectedName = this.auth.workstation() || this.defaultName;
         const rm = this.route.snapshot.paramMap.get('remove');