From b85869f94a823d8bafe2a9460bca513f5b873337 Mon Sep 17 00:00:00 2001 From: Ylian Saint-Hilaire Date: Thu, 20 Aug 2020 00:31:41 -0700 Subject: [PATCH] Fixed web app exception. --- views/default.handlebars | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) {