Fixed bug on adding new host

This commit is contained in:
R. Aidan Campbell 2017-10-08 12:21:27 -07:00
parent c2ec8f377e
commit ba66f5448d

View File

@ -322,7 +322,7 @@ function addHost() {
pairTo(_nvhttpHost, function () {
// Check if we already have record of this host
if (hosts[_nvhttpHost.serverUid] !== null) {
if (hosts[_nvhttpHost.serverUid] !== undefined) {
// Just update the addresses
hosts[_nvhttpHost.serverUid].address = _nvhttpHost.address;
hosts[_nvhttpHost.serverUid].userEnteredAddress = _nvhttpHost.userEnteredAddress;