diff --git a/ui/scripts/cloud.core.resource.js b/ui/scripts/cloud.core.resource.js index 367a332ee29..d511adddd57 100644 --- a/ui/scripts/cloud.core.resource.js +++ b/ui/scripts/cloud.core.resource.js @@ -124,7 +124,10 @@ function buildZoneTree() { } function refreshClusterUnderPod($podNode, newClusterName, existingClusterId, noClicking) { - var podId = $podNode.data("podId"); + var podId = $podNode.data("podId"); + if(podId == null) //e.g. $podNode is not on the screen (when zone tree is hidden) ($podNode.length==0) + return; + $.ajax({ data: createURL("command=listClusters&podid="+podId), dataType: "json",