Fix TS error in manifest security view
This commit is contained in:
parent
cbe151c21d
commit
68bcacda25
1 changed files with 2 additions and 2 deletions
|
@ -46,7 +46,7 @@ export class ManifestSecurityView {
|
|||
'Color': 'gray',
|
||||
};
|
||||
|
||||
this.VulnerabilityService.forEachVulnerability(resp, function(vuln) {
|
||||
this.VulnerabilityService.forEachVulnerability(resp, (vuln) => {
|
||||
if (this.VulnerabilityService.LEVELS[vuln.Severity].index < highest.index) {
|
||||
highest = {
|
||||
'Priority': vuln.Severity,
|
||||
|
@ -68,7 +68,7 @@ export class ManifestSecurityView {
|
|||
securityStatus.featuresInfo = this.VulnerabilityService.buildFeaturesInfo(null, resp);
|
||||
securityStatus.vulnerabilitiesInfo = this.VulnerabilityService.buildVulnerabilitiesInfo(null, resp);
|
||||
}
|
||||
}, function() {
|
||||
}, () => {
|
||||
securityStatus.loading = false;
|
||||
securityStatus.hasError = true;
|
||||
});
|
||||
|
|
Reference in a new issue