Merge pull request #3298 from quay/fix-manifest-security-view

Fix TS error in manifest security view
This commit is contained in:
Joseph Schorr 2018-12-04 13:21:33 -05:00 committed by GitHub
commit c71a43a06c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -46,7 +46,7 @@ export class ManifestSecurityView {
'Color': 'gray', 'Color': 'gray',
}; };
this.VulnerabilityService.forEachVulnerability(resp, function(vuln) { this.VulnerabilityService.forEachVulnerability(resp, (vuln) => {
if (this.VulnerabilityService.LEVELS[vuln.Severity].index < highest.index) { if (this.VulnerabilityService.LEVELS[vuln.Severity].index < highest.index) {
highest = { highest = {
'Priority': vuln.Severity, 'Priority': vuln.Severity,
@ -68,7 +68,7 @@ export class ManifestSecurityView {
securityStatus.featuresInfo = this.VulnerabilityService.buildFeaturesInfo(null, resp); securityStatus.featuresInfo = this.VulnerabilityService.buildFeaturesInfo(null, resp);
securityStatus.vulnerabilitiesInfo = this.VulnerabilityService.buildVulnerabilitiesInfo(null, resp); securityStatus.vulnerabilitiesInfo = this.VulnerabilityService.buildVulnerabilitiesInfo(null, resp);
} }
}, function() { }, () => {
securityStatus.loading = false; securityStatus.loading = false;
securityStatus.hasError = true; securityStatus.hasError = true;
}); });