gui: Prevent spurious api call (fixes #6222) (#6223)

This commit is contained in:
Simon Frei 2019-12-11 20:37:35 +01:00 committed by Jakob Borg
parent fca2876795
commit 82ed8e702c
1 changed files with 1 additions and 1 deletions

View File

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