LPXXX Angular Volcopy
authorBill Erickson <berickxx@gmail.com>
Thu, 2 Jul 2020 21:50:23 +0000 (17:50 -0400)
committerBill Erickson <berickxx@gmail.com>
Thu, 2 Jul 2020 21:50:36 +0000 (17:50 -0400)
Signed-off-by: Bill Erickson <berickxx@gmail.com>
Open-ILS/src/eg2/src/app/staff/cat/volcopy/volcopy.service.ts

index c2a0aa5..44dddfd 100644 (file)
@@ -418,7 +418,8 @@ export class VolCopyService {
     }
 
     restrictCopyDelete(statId: number): boolean {
-        return this.copyStatuses[statId].restrict_copy_delete() === 't';
+        return this.copyStatuses[statId] &&
+               this.copyStatuses[statId].restrict_copy_delete() === 't';
     }
 }