From b07458958775dde8730b51b00f4d899b780f493e Mon Sep 17 00:00:00 2001 From: charithag Date: Fri, 7 Aug 2015 11:30:22 +0530 Subject: [PATCH] Fix divice listing issue --- .../iotserver/units/device-listing/public/js/device-listing.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/distribution/src/repository/jaggeryapps/iotserver/units/device-listing/public/js/device-listing.js b/modules/distribution/src/repository/jaggeryapps/iotserver/units/device-listing/public/js/device-listing.js index c624ed06..91fda3dd 100644 --- a/modules/distribution/src/repository/jaggeryapps/iotserver/units/device-listing/public/js/device-listing.js +++ b/modules/distribution/src/repository/jaggeryapps/iotserver/units/device-listing/public/js/device-listing.js @@ -164,7 +164,7 @@ function loadDevices() { } else { groups = data.data; } - if (groups.length == 1 && groups[0].id == 0) { + if (groups.length == 1 && groups[0].id == 0 && groups[0].devices.length == 0) { $("#ast-container-parent").html($("#no-devices-div-content").html()); } else { viewModel.groups = groups;