webpack/scenes/ContentViews/Details/Repositories/ContentCounts.js in katello-4.3.0.rc1 vs webpack/scenes/ContentViews/Details/Repositories/ContentCounts.js in katello-4.3.0.rc2

- old
+ new

@@ -12,11 +12,10 @@ ansible_collection: ['Ansible collections', 'Ansible collection', 'ansible_collections'], docker_manifest: ['container manifests', 'container manifest', 'content/docker_manifests'], docker_manifest_list: ['container manifest lists', 'container manifest list', 'content/docker_manifest_lists'], docker_tag: ['container tags', 'container tag', 'content/docker_tags'], file: ['files', 'file', 'content/files'], - ostree_branch: ['ostree branches', 'ostree branch', 'content/ostree_branches'], package_group: ['package groups', 'package group', 'package_groups'], srpm: ['source RPMs', 'source RPM', 'source_rpms'], // no link? }; const appendCount = (type, count, info, productId, repoId) => { @@ -44,9 +43,11 @@ typeConfig.names.singularLabel === type); if (config) { const { pluralLowercase, singularLowercase, pluralLabel } = config.names; info = [pluralLowercase, singularLowercase, pluralLabel]; + } else if (!info) { + info = ['unknown units', 'unknown unit', '']; } // package and rpm are the same if (type !== 'package' && count > 0) allCounts.push(appendCount(type, count, info, productId, repoId)); });