Improved fix for #30

This commit is contained in:
Logan Cusano
2023-06-19 02:29:04 -04:00
parent 57881a7e17
commit 9ce77a5be0

View File

@@ -119,7 +119,8 @@ class nodeObject {
this.port = _port;
this.location = _location;
if (_nearbySystems && Array.isArray(_nearbySystems)) this.nearbySystems = _nearbySystems;
else this.nearbySystems = Object.keys(_nearbySystems);
else if (_nearbySystems) this.nearbySystems = Object.keys(_nearbySystems);
else this.nearbySystems = _nearbySystems;
this.online = _online;
}
}