filter out remote groups with no remotes left
This commit is contained in:
parent
d82530e1db
commit
5c7d65546b
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue