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:
+6
-2
@@ -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, []);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user