From 68bcacda255ceb9f492fd0bab5fbf664f7009eaa Mon Sep 17 00:00:00 2001 From: Joseph Schorr Date: Tue, 4 Dec 2018 13:18:55 -0500 Subject: [PATCH] Fix TS error in manifest security view --- .../manifest-security-view.component.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/static/js/directives/ui/manifest-security-view/manifest-security-view.component.ts b/static/js/directives/ui/manifest-security-view/manifest-security-view.component.ts index e02c4f439..6a326ef6c 100644 --- a/static/js/directives/ui/manifest-security-view/manifest-security-view.component.ts +++ b/static/js/directives/ui/manifest-security-view/manifest-security-view.component.ts @@ -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; });