LP1929741 Improve catalog service sanity check
authorBill Erickson <berickxx@gmail.com>
Tue, 27 Apr 2021 14:32:05 +0000 (10:32 -0400)
committerBill Erickson <berickxx@gmail.com>
Wed, 26 May 2021 18:37:30 +0000 (14:37 -0400)
Signed-off-by: Bill Erickson <berickxx@gmail.com>
Open-ILS/src/eg2/src/app/share/catalog/catalog.service.ts

index 136e27a..1463bea 100644 (file)
@@ -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) {