Clean up error in holds table grid
authorStephanie Leary <stephanie.leary@equinoxoli.org>
Fri, 17 Mar 2023 16:02:39 +0000 (16:02 +0000)
committerStephanie Leary <stephanie.leary@equinoxoli.org>
Fri, 17 Mar 2023 16:02:39 +0000 (16:02 +0000)
Signed-off-by: Stephanie Leary <stephanie.leary@equinoxoli.org>
Open-ILS/src/eg2/src/app/staff/share/holds/grid.component.ts

index 2df39ad..d8d5eb3 100644 (file)
@@ -680,6 +680,7 @@ export class HoldsGridComponent implements OnInit {
     }
 
     isCopyHold(holdData: any): boolean {
+        if (!holdData.hold_type) return null;
         return holdData.hold_type.match(/C|R|F/) !== null;
     }
 }