Fix divice listing issue

This commit is contained in:
charithag 2015-08-07 11:30:22 +05:30
parent 74958fd4bc
commit b074589587

View File

@ -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;