From c86684fbdd0f4461838f4b6d534bff7986b75c0d Mon Sep 17 00:00:00 2001 From: dahn Date: Thu, 3 Aug 2023 04:58:22 +0200 Subject: [PATCH] UI: allow new keys for VM details (#7793) --- ui/src/components/view/DetailSettings.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ui/src/components/view/DetailSettings.vue b/ui/src/components/view/DetailSettings.vue index 57c5343ab7d..ba96ad6ee8b 100644 --- a/ui/src/components/view/DetailSettings.vue +++ b/ui/src/components/view/DetailSettings.vue @@ -170,7 +170,11 @@ export default { return [] } if (!Array.isArray(this.detailOptions[this.newKey])) { - return { value: 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 }