Fixed web page error, #3650

This commit is contained in:
Ylian Saint-Hilaire 2022-02-15 10:57:20 -08:00
parent 196eccf330
commit bc6d3ce8a0

View File

@ -4049,7 +4049,7 @@
}
} else {
// If sorted by "Groups-Tags" and a device has no tags, put in a group only section.
if ((sort == 4) && ((node.tags == null) || (node.tags.length == 0))) {
if ((sort == 4) && (mesh2 != null) && ((node.tags == null) || (node.tags.length == 0))) {
var tag = mesh2.name;
var collapsed = CollapsedGroups['tag:' + encodeURIComponentEx(tag)];
var r2 = r.replace('**xx**xx*TaG*xx**xx**', encodeURIComponentEx(tag) + (collapsed?' style=display:none':''));