Skip to content

Commit c86684f

Browse files
authored
UI: allow new keys for VM details (apache#7793)
1 parent da7fc72 commit c86684f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

ui/src/components/view/DetailSettings.vue

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,11 @@ export default {
170170
return []
171171
}
172172
if (!Array.isArray(this.detailOptions[this.newKey])) {
173-
return { value: this.detailOptions[this.newKey] }
173+
if (this.detailOptions[this.newKey]) {
174+
return { value: this.detailOptions[this.newKey] }
175+
} else {
176+
return ''
177+
}
174178
}
175179
return this.detailOptions[this.newKey].map(value => {
176180
return { value: value }

0 commit comments

Comments
 (0)