Potential fix for #30

This commit is contained in:
Logan Cusano
2023-06-19 02:26:36 -04:00
parent e350cd6030
commit 57881a7e17

View File

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