This is an automated email from the ASF dual-hosted git repository.

weizhou pushed a commit to branch 4.18
in repository https://gitbox.apache.org/repos/asf/cloudstack.git


The following commit(s) were added to refs/heads/4.18 by this push:
     new c86684fbdd0 UI: allow new keys for VM details (#7793)
c86684fbdd0 is described below

commit c86684fbdd0f4461838f4b6d534bff7986b75c0d
Author: dahn <[email protected]>
AuthorDate: Thu Aug 3 04:58:22 2023 +0200

    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 }

Reply via email to