filter out remote groups with no remotes left

This commit is contained in:
tigerbot 2017-06-05 11:00:54 -06:00
parent d82530e1db
commit 5c7d65546b
1 changed files with 1 additions and 1 deletions

View File

@ -29,7 +29,7 @@ Devices.remove = function (store, servername, device) {
return devices.splice(index, 1)[0]; return devices.splice(index, 1)[0];
}; };
Devices.list = function (store, servername) { Devices.list = function (store, servername) {
if (store[servername]) { if (store[servername] && store[servername].length) {
return store[servername]; return store[servername];
} }
// There wasn't an exact match so check any of the wildcard domains, sorted longest // There wasn't an exact match so check any of the wildcard domains, sorted longest