Errors may now be null, and that's fine

This commit is contained in:
Jakob Borg 2015-10-12 10:12:57 +09:00
parent ec8bc02d33
commit 2645e87766
1 changed files with 3 additions and 0 deletions

View File

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