mirror of
https://github.com/octoleo/syncthing.git
synced 2025-01-03 07:12:27 +00:00
gui: Handle folder missing in model on error event (#8120)
This commit is contained in:
parent
21d04b895a
commit
b2996eee87
@ -399,6 +399,10 @@ angular.module('syncthing.core')
|
||||
});
|
||||
|
||||
$scope.$on(Events.FOLDER_ERRORS, function (event, arg) {
|
||||
if (!$scope.model[arg.data.folder]) {
|
||||
console.log("Dropping folder errors event for unknown folder", arg.data.folder)
|
||||
return;
|
||||
}
|
||||
$scope.model[arg.data.folder].errors = arg.data.errors.length;
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user