Squelch interpolation errors at startup

This commit is contained in:
Jakob Borg
2014-05-21 21:07:37 +02:00
parent 51bf15728a
commit 8bba82a08d
2 changed files with 4 additions and 1 deletions

View File

@@ -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;
}