Handle dependencies with an empty manifest field

This happens sometimes with snapshots. We just want them to be displayed properly in the HTML output.
This commit is contained in:
Justin Holguín
2023-03-24 19:07:22 +00:00
committed by GitHub
parent 0c01e947d6
commit 7e1f7be1f6
4 changed files with 65 additions and 4 deletions
+3 -1
View File
@@ -8,7 +8,9 @@ export function groupDependenciesByManifest(
): Map<string, Changes> {
const dependencies: Map<string, Changes> = new Map()
for (const change of changes) {
const manifestName = change.manifest
// If the manifest is null or empty, use a space as the key to avoid
// breaking the HTML rendering later
const manifestName = change.manifest || ' '
if (dependencies.get(manifestName) === undefined) {
dependencies.set(manifestName, [])