AW-3441 better test to find real problem. fixed the getValidPackages function.
All checks were successful
FarmMaps/FarmMapsLib/pipeline/head This commit looks good
All checks were successful
FarmMaps/FarmMapsLib/pipeline/head This commit looks good
This commit is contained in:
@@ -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;
|
||||
}, {});
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user