AW-3441 better test to find real problem. fixed the getValidPackages function.
All checks were successful
FarmMaps/FarmMapsLib/pipeline/head This commit looks good

This commit is contained in:
2022-01-27 23:20:20 +01:00
parent 122563a0bd
commit a1a4fc14ab
4 changed files with 47 additions and 13 deletions

View File

@@ -44,10 +44,9 @@ export function getValidPackages(packageMap: IPackages): {[key: string]: IPackag
return packages.length > 0;
}).reduce((map, key) => {
const packages = packageMap[key];
return {
...map,
key: packages[0]
};
const newMap = {...map};
newMap[key] = packages.find(p => isValidPackage(p));
return newMap;
}, {});
}