Skip to content

Commit b5a75f5

Browse files
Fixed UI to support renames cwe -> cwes field
Signed-off-by: Steve Springett <[email protected]>
1 parent 42f2cb1 commit b5a75f5

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/views/portfolio/projects/ProjectFindings.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@
109109
},
110110
{
111111
title: this.$t('message.cwe'),
112-
field: "vulnerability.cwe",
112+
field: "vulnerability.cwes",
113113
sortable: true,
114114
visible: false,
115115
formatter(value, row, index) {

src/views/portfolio/vulnerabilities/Vulnerability.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,9 @@
6262
</b-card>
6363
</div>
6464

65-
<div v-if="vulnerability.cwe">
65+
<div v-if="vulnerability.cwes">
6666
<b-card :title="this.$t('message.weakness')">
67-
<b-card-text v-for="cwe in vulnerability.cwe" :key="cwe.cweId">
67+
<b-card-text v-for="cwe in vulnerability.cwes" :key="cwe.cweId">
6868
<a :href="cweLink(cwe)">{{ cweLabel(cwe) }}</a>
6969
</b-card-text>
7070
</b-card>

0 commit comments

Comments
 (0)