Handle ISP with no nodes
This commit is contained in:
parent
5ff5275b36
commit
685433fe4c
@ -538,6 +538,10 @@ class NodesApi {
|
||||
|
||||
const IPSIds = ISPId.split(',');
|
||||
const [rows]: any = await DB.query(query, [IPSIds, IPSIds]);
|
||||
if (!rows || rows.length === 0) {
|
||||
return [];
|
||||
}
|
||||
|
||||
const nodes = {};
|
||||
|
||||
const intISPIds: number[] = [];
|
||||
|
Loading…
x
Reference in New Issue
Block a user