From: Bill Erickson Date: Thu, 9 Aug 2018 18:22:11 +0000 (-0400) Subject: LP#1775466 WS admin page workstations sanity check X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=496721f19d204666409119eae0dd0f0a7494e24d;p=working%2FEvergreen.git LP#1775466 WS admin page workstations sanity check Signed-off-by: Bill Erickson --- diff --git a/Open-ILS/src/eg2/src/app/staff/admin/workstation/workstations/workstations.component.ts b/Open-ILS/src/eg2/src/app/staff/admin/workstation/workstations/workstations.component.ts index 9fb0d7e37b..f4f3b83b88 100644 --- a/Open-ILS/src/eg2/src/app/staff/admin/workstation/workstations/workstations.component.ts +++ b/Open-ILS/src/eg2/src/app/staff/admin/workstation/workstations/workstations.component.ts @@ -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');