From 8bba82a08d28b1be2717bafd76adcf855a6d6ce8 Mon Sep 17 00:00:00 2001 From: Jakob Borg Date: Wed, 21 May 2014 21:07:37 +0200 Subject: [PATCH] Squelch interpolation errors at startup --- gui/app.js | 3 +++ gui/index.html | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/gui/app.js b/gui/app.js index 78b23e79..0df76335 100644 --- a/gui/app.js +++ b/gui/app.js @@ -233,6 +233,9 @@ syncthing.controller('SyncthingCtrl', function ($scope, $http) { }; $scope.nodeName = function (nodeCfg) { + if (typeof nodeCfg === 'undefined') { + return ""; + } if (nodeCfg.Name) { return nodeCfg.Name; } diff --git a/gui/index.html b/gui/index.html index d3652438..1dc1ac0e 100644 --- a/gui/index.html +++ b/gui/index.html @@ -389,7 +389,7 @@
{{myID | chunkID}}
- +