diff --git a/views/default.handlebars b/views/default.handlebars index 07e50929..fb40dd6d 100644 --- a/views/default.handlebars +++ b/views/default.handlebars @@ -3607,7 +3607,7 @@ // Add a "Add Device Group" option r += '
'; - if ((view < 3) && (sort == 0) && (sortedMeshes.length > 0) && ((userinfo.siteadmin == 0xFFFFFFFF) || ((userinfo.siteadmin & 64) == 0))) { + if ((view < 3) && (sort == 0) && (Object.keys(meshes).length > 0) && ((userinfo.siteadmin == 0xFFFFFFFF) || ((userinfo.siteadmin & 64) == 0))) { r += '' + "Add Device Group" + ' '; } if ((userinfo.siteadmin == 0xFFFFFFFF) || ((userinfo.siteadmin & 128) == 0)) {