From 4477b9d6c9d4322b60190ead8259c3a63e471b2a Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Tue, 27 Apr 2021 10:32:05 -0400 Subject: [PATCH] LP1929741 Improve catalog service sanity check Signed-off-by: Bill Erickson Signed-off-by: Galen Charlton Signed-off-by: Jane Sandberg --- Open-ILS/src/eg2/src/app/share/catalog/catalog.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Open-ILS/src/eg2/src/app/share/catalog/catalog.service.ts b/Open-ILS/src/eg2/src/app/share/catalog/catalog.service.ts index 1c861fa40c..99ed080ac3 100644 --- a/Open-ILS/src/eg2/src/app/share/catalog/catalog.service.ts +++ b/Open-ILS/src/eg2/src/app/share/catalog/catalog.service.ts @@ -393,7 +393,7 @@ export class CatalogService { } iconFormatLabel(code: string): string { - if (this.ccvmMap && this.ccvmMap.icon_format) { + if (Object.keys(this.ccvmMap).length) { const ccvm = this.ccvmMap.icon_format.filter( format => format.code() === code)[0]; if (ccvm) { -- 2.11.0