in eng/scripts/inventory-dashboard/src/formatData.ts [118:127]
LatestRelease: compareDates(formattedPackage.LatestRelease, pkgInList.LatestRelease)
};
}
// package in list missing track 2 or contains a package reference in track 2 prop, but new package has track 2 info
else if (
(JSON.stringify(pkgInList.Track2) === StringTrackSpecificsDefault || pkgInList.Track2.ColorCode === 4) &&
JSON.stringify(formattedPackage.Track2) !== StringTrackSpecificsDefault
) {
// if package reference in track 2 prop check new package matches the reference
if (pkgInList.Track2.ColorCode === 4 && (pkgInList.Track2.Package.replaceAll("Replaced by:", "") !== formattedPackage.Track2.Package.replaceAll("Replaced by:", ""))) {