Skip to content

Commit

Permalink
Fix UI sbom status not updated after job done
Browse files Browse the repository at this point in the history
  • Loading branch information
xuelichao committed Apr 27, 2024
1 parent fba4c40 commit addf8b8
Showing 1 changed file with 8 additions and 0 deletions.
Expand Up @@ -984,6 +984,14 @@ export class ArtifactListTabComponent implements OnInit, OnDestroy {
if (this.selectedRow && this.selectedRow.length) {
for (let i = 0; i < this.selectedRow.length; i++) {
if (artifact.digest === this.selectedRow[i].digest) {
if (artifact.sbom_overview) {
this.selectedRow[i].sbom_overview =
artifact.sbom_overview;
}
if (artifact.sbom_overview.sbom_digest) {
this.selectedRow[i].sbomDigest =
artifact.sbom_overview.sbom_digest;
}
this.selectedRow.splice(i, 1);
break;
}
Expand Down

0 comments on commit addf8b8

Please sign in to comment.