UI: allow new keys for VM details (#7793)

This commit is contained in:
dahn 2023-08-03 04:58:22 +02:00 committed by GitHub
parent da7fc72c66
commit c86684fbdd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -170,7 +170,11 @@ export default {
return []
}
if (!Array.isArray(this.detailOptions[this.newKey])) {
if (this.detailOptions[this.newKey]) {
return { value: this.detailOptions[this.newKey] }
} else {
return ''
}
}
return this.detailOptions[this.newKey].map(value => {
return { value: value }