From ba66f5448df62d92ca0fa825af610e70b89a3851 Mon Sep 17 00:00:00 2001 From: "R. Aidan Campbell" Date: Sun, 8 Oct 2017 12:21:27 -0700 Subject: [PATCH] Fixed bug on adding new host --- static/js/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/js/index.js b/static/js/index.js index 188f814..f77bdd2 100644 --- a/static/js/index.js +++ b/static/js/index.js @@ -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;