Fix manifest duplication bug

This commit is contained in:
Justin Hutchings
2023-01-22 08:31:09 +00:00
parent 7cf27a1e9d
commit f45d764bb0
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -91,7 +91,7 @@ export default class ComponentDetection {
// Check the locationsFoundAt for every package and add each as a manifest
packages.forEach(async (pkg: ComponentDetectionPackage) => {
pkg.locationsFoundAt.forEach(async (location: any) => {
if (!manifests[location.filePath]) {
if (!manifests[location]) {
const manifest = new Manifest(location, location);
manifests.push(manifest);
}