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
Generated Vendored
+6 -2
View File
@@ -976,7 +976,9 @@ function groupDependenciesByManifest(changes) {
var _a;
const dependencies = 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, []);
}
@@ -45233,7 +45235,9 @@ function groupDependenciesByManifest(changes) {
var _a;
const dependencies = 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, []);
}