From 48c3ee1f23dbe6544c9c675032403cb68321f0ca Mon Sep 17 00:00:00 2001 From: Sergio Betanzos Date: Wed, 13 May 2020 15:57:40 +0200 Subject: [PATCH] M #~: Fix roles table in flow service (#4718) --- .../app/tabs/oneflow-services-tab/panels/roles.js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/sunstone/public/app/tabs/oneflow-services-tab/panels/roles.js b/src/sunstone/public/app/tabs/oneflow-services-tab/panels/roles.js index 4be44a7ce2..9ccc0b670d 100644 --- a/src/sunstone/public/app/tabs/oneflow-services-tab/panels/roles.js +++ b/src/sunstone/public/app/tabs/oneflow-services-tab/panels/roles.js @@ -236,11 +236,12 @@ define(function(require) { if (that.cache && that.cache.data && Array.isArray(that.cache.data)) { $.each(that.cache.data, function(_, data){ if (data.VM && data.VM.ID === id) { - if (that.element.TEMPLATE.BODY.ready_status_gate) { - (vm_info.VM.USER_TEMPLATE.READY == "YES") - ? info.push('') - : info.push('') - } + (that.element.TEMPLATE.BODY.ready_status_gate && + vm_info.VM.USER_TEMPLATE && + vm_info.VM.USER_TEMPLATE.READY && + vm_info.VM.USER_TEMPLATE.READY == "YES") + ? info.push('') + : info.push(''); ips = OpenNebulaVM.ipsStr(data.VM);