diff --git a/ui/scripts/cloud.core.diskoffering.js b/ui/scripts/cloud.core.diskoffering.js index 456886cf4fb..588336c7adb 100644 --- a/ui/scripts/cloud.core.diskoffering.js +++ b/ui/scripts/cloud.core.diskoffering.js @@ -205,9 +205,10 @@ function diskOfferingJsonToDetailsTab() { async: false, success: function(json) { var items = json.listdiskofferingsresponse.diskoffering; - if(items != null && items.length > 0) + if(items != null && items.length > 0) { jsonObj = items[0]; $midmenuItem1.data("jsonObj", jsonObj); + } } }); diff --git a/ui/scripts/cloud.core.serviceoffering.js b/ui/scripts/cloud.core.serviceoffering.js index fe49d346eec..a7a8f72bd5e 100644 --- a/ui/scripts/cloud.core.serviceoffering.js +++ b/ui/scripts/cloud.core.serviceoffering.js @@ -214,9 +214,10 @@ function serviceOfferingJsonToDetailsTab() { async: false, success: function(json) { var items = json.listserviceofferingsresponse.serviceoffering; - if(items != null && items.length > 0) + if(items != null && items.length > 0) { jsonObj = items[0]; $midmenuItem1.data("jsonObj", jsonObj); + } } });