Browse Source

Errors may now be null, and that's fine

Jakob Borg 10 years ago
parent
commit
2645e87766
1 changed files with 3 additions and 0 deletions
  1. 3 0
      gui/syncthing/core/syncthingController.js

+ 3 - 0
gui/syncthing/core/syncthingController.js

@@ -1043,6 +1043,9 @@ angular.module('syncthing.core')
         };
 
         $scope.errorList = function () {
+            if (!$scope.errors) {
+                return [];
+            }
             return $scope.errors.filter(function (e) {
                 return e.time > $scope.seenError;
             });