diff --git a/gui/default/syncthing/core/syncthingController.js b/gui/default/syncthing/core/syncthingController.js index 810236fa7..1bab5e46e 100755 --- a/gui/default/syncthing/core/syncthingController.js +++ b/gui/default/syncthing/core/syncthingController.js @@ -690,7 +690,7 @@ angular.module('syncthing.core') }; $scope.refreshFailed = function (page, perpage) { - if (!$scope.failed) { + if (!$scope.failed || !$scope.failed.folder) { return; } var url = urlbase + '/folder/errors?folder=' + encodeURIComponent($scope.failed.folder);