diff --git a/ui/src/views/offering/AddDiskOffering.vue b/ui/src/views/offering/AddDiskOffering.vue index 1cd1dd84b52..267c5eff87f 100644 --- a/ui/src/views/offering/AddDiskOffering.vue +++ b/ui/src/views/offering/AddDiskOffering.vue @@ -334,8 +334,8 @@ :loading="storageTagLoading" :placeholder="this.$t('label.tags')" v-if="this.isAdmin()"> - - {{ opt.name || opt.description }} + + {{ opt }} @@ -530,13 +530,10 @@ export default { params.listAll = true this.storageTagLoading = true api('listStorageTags', params).then(json => { - const tags = json.liststoragetagsresponse.storagetag - if (this.arrayHasItems(tags)) { - for (var i in tags) { - var tag = {} - tag.id = tags[i].name - tag.name = tags[i].name - this.storageTags.push(tag) + const tags = json.liststoragetagsresponse.storagetag || [] + for (const tag of tags) { + if (!this.storageTags.includes(tag.name)) { + this.storageTags.push(tag.name) } } }).finally(() => {