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=a9a7c1a409d34972a2fb9076d1dd5da58599317e;p=working%2FEvergreen.git LP1929741 Improve catalog service sanity check Signed-off-by: Bill Erickson --- 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 136e27a71b..1463beaba3 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 @@ -385,7 +385,7 @@ export class CatalogService { } iconFormatLabel(code: string): string { - if (this.ccvmMap) { + if (Object.keys(this.ccvmMap).length) { const ccvm = this.ccvmMap.icon_format.filter( format => format.code() === code)[0]; if (ccvm) {