Skip to content

Commit 4b57e7b

Browse files
committed
CS-16002: Fix ACL list view when no networks present
1 parent b391a1c commit 4b57e7b

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎ui/scripts/vpc.js‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -553,8 +553,11 @@
553553
vpcid: args.context.vpc[0].id
554554
},
555555
success: function(json) {
556+
var networks = json.listnetworksresponse.network ?
557+
json.listnetworksresponse.network : [];
558+
556559
args.response.success({
557-
data: $.map(json.listnetworksresponse.network, function(tier) {
560+
data: $.map(networks, function(tier) {
558561
var aclTotal = 0;
559562

560563
// Get ACL total

0 commit comments

Comments
 (0)