From 2645e877669a249ac7e9191b3666494278a9f168 Mon Sep 17 00:00:00 2001 From: Jakob Borg Date: Mon, 12 Oct 2015 10:12:57 +0900 Subject: [PATCH] Errors may now be null, and that's fine --- gui/syncthing/core/syncthingController.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gui/syncthing/core/syncthingController.js b/gui/syncthing/core/syncthingController.js index 5da13e88f..0211d5bcd 100755 --- a/gui/syncthing/core/syncthingController.js +++ b/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; });