From: Bill Erickson Date: Tue, 27 Apr 2021 14:32:05 +0000 (-0400) Subject: LP1929741 Improve catalog service sanity check X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=4477b9d6c9d4322b60190ead8259c3a63e471b2a;p=working%2FEvergreen.git LP1929741 Improve catalog service sanity check Signed-off-by: Bill Erickson Signed-off-by: Galen Charlton Signed-off-by: Jane Sandberg --- 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) {