Skip to content

Commit

Permalink
[Cherry-pick]Hide version property if the value is undefined (#19396)
Browse files Browse the repository at this point in the history
Hide version property if the value is undefined
1.Related issue #19391

Signed-off-by: AllForNothing <sshijun@vmware.com>
  • Loading branch information
AllForNothing committed Sep 28, 2023
1 parent 3c62b75 commit 6f85d59
Showing 1 changed file with 9 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -229,10 +229,15 @@ <h2 class="h2">
<div class="clr-col-2">
{{ item?.cvss_score_v3 }}
</div>
<div
class="clr-col-4 ellipsis"
title="{{ item?.package + '@' + item?.version }}">
{{ item?.package + '@' + item?.version }}
<div class="clr-col-4 ellipsis">
<span
*ngIf="item?.version"
title="{{ item?.package + '@' + item?.version }}">
{{ item?.package + '@' + item?.version }}
</span>
<span *ngIf="!item?.version" title="{{ item?.package }}">
{{ item?.package }}
</span>
</div>
</div>
</div>
Expand Down

0 comments on commit 6f85d59

Please sign in to comment.