Skip to content

Commit 9ff519d

Browse files
committed
Fix ignore license for ERC licenseID
1 parent 95c3136 commit 9ff519d

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/components/licenses/used/databases/ignoreDbLicense.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
</template>
1919

2020
<script>
21+
import _ from 'lodash'
2122
import { mapActions } from 'vuex'
2223
2324
export default {
@@ -73,7 +74,7 @@ export default {
7374
licenseID: this.licenseID,
7475
status: this.status,
7576
page: this.page,
76-
type: this.type,
77+
type: _.includes(this.licenseID, 'ERC') ? 'oracle' : this.type,
7778
comment: this.status ? message : '',
7879
}
7980

src/helpers/helpers.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -260,8 +260,8 @@ export const setFullPartNumber = (data) => {
260260
_.map(data, (val) => {
261261
let full = ''
262262
let id = val.licenseTypeID
263-
let description = val.description || val.itemDescription
264-
let metric = val.metric
263+
let description = val.description || val.itemDescription || '-'
264+
let metric = val.metric || '-'
265265

266266
if (id && description) {
267267
full = `${id} - ${description}`

0 commit comments

Comments
 (0)