Przeglądaj źródła

Check if announcement data is available

Audrius Butkevicius 11 lat temu
rodzic
commit
bc8907e90d

+ 1 - 1
gui/scripts/syncthing/core/controllers/syncthingController.js

@@ -268,7 +268,7 @@ angular.module('syncthing.core')
             $http.get(urlbase + '/system').success(function (data) {
                 $scope.myID = data.myID;
                 $scope.system = data;
-                $scope.announceServersTotal = Object.keys(data.extAnnounceOK).length;
+                $scope.announceServersTotal = data.extAnnounceOK ? Object.keys(data.extAnnounceOK).length : 0;
                 var failed = [];
                 for (var server in data.extAnnounceOK) {
                     if (!data.extAnnounceOK[server]) {

Plik diff jest za duży
+ 0 - 0
internal/auto/gui.files.go


Niektóre pliki nie zostały wyświetlone z powodu dużej ilości zmienionych plików