Hide version property if the value is undefined (#19395)

1.Related issue #19391

Signed-off-by: AllForNothing <sshijun@vmware.com>
This commit is contained in:
Shijun Sun 2023-09-28 10:59:10 +08:00 committed by GitHub
parent 3338f27189
commit d0322dfcba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -229,10 +229,15 @@
<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>