From b9834adedb5ac2b0f6dcc101d291a8e73a72a226 Mon Sep 17 00:00:00 2001 From: Stephanie Leary Date: Fri, 17 Mar 2023 16:02:39 +0000 Subject: [PATCH] Clean up error in holds table grid Signed-off-by: Stephanie Leary --- Open-ILS/src/eg2/src/app/staff/share/holds/grid.component.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/Open-ILS/src/eg2/src/app/staff/share/holds/grid.component.ts b/Open-ILS/src/eg2/src/app/staff/share/holds/grid.component.ts index 2df39adf2e..d8d5eb3c16 100644 --- a/Open-ILS/src/eg2/src/app/staff/share/holds/grid.component.ts +++ b/Open-ILS/src/eg2/src/app/staff/share/holds/grid.component.ts @@ -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; } } -- 2.11.0