Improve vulnerability list page (#14031)

Signed-off-by: AllForNothing <sshijun@vmware.com>
This commit is contained in:
Will Sun 2021-01-21 10:41:09 +08:00 committed by GitHub
parent 63831dfd08
commit 9a897af67e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -222,7 +222,7 @@ export class ArtifactVulnerabilitiesComponent implements OnInit, OnDestroy {
this.projectService.getProject(this.projectId).subscribe( this.projectService.getProject(this.projectId).subscribe(
projectRes => { projectRes => {
if (projectRes && projectRes.cve_allowlist if (projectRes && projectRes.cve_allowlist
&& projectRes.metadata && projectRes.metadata.reuse_sys_cve_allowlist !== "true" && projectRes.metadata && projectRes.metadata.reuse_sys_cve_allowlist === "false"
) { // use project CVE allow list ) { // use project CVE allow list
this.currentCVEList = projectRes.cve_allowlist['items']; this.currentCVEList = projectRes.cve_allowlist['items'];
} else { // use system CVE allow list } else { // use system CVE allow list