Use 'Unnamed Manifest' as catchall bucket

This commit is contained in:
Justin Holguín
2023-03-28 16:06:07 +00:00
committed by GitHub
parent 7e1f7be1f6
commit 76b8e83d1a
4 changed files with 8 additions and 8 deletions
+2 -2
View File
@@ -8,9 +8,9 @@ export function groupDependenciesByManifest(
): Map<string, Changes> {
const dependencies: Map<string, Changes> = new Map()
for (const change of changes) {
// If the manifest is null or empty, use a space as the key to avoid
// If the manifest is null or empty, give it a name now to avoid
// breaking the HTML rendering later
const manifestName = change.manifest || ' '
const manifestName = change.manifest || 'Unnamed Manifest'
if (dependencies.get(manifestName) === undefined) {
dependencies.set(manifestName, [])