gui: Fix another undefined variable access (fixes #7077) (#7078)

This commit is contained in:
André Colomb 2020-11-01 13:15:20 +01:00 committed by GitHub
parent 4a616f3cb2
commit 9d1ee2f7e0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1927,8 +1927,8 @@ angular.module('syncthing.core')
// Bump time // Bump time
pendingFolder.time = (new Date()).toISOString(); pendingFolder.time = (new Date()).toISOString();
if (id in $scope.devices) { if (device in $scope.devices) {
$scope.devices[id].ignoredFolders.push(pendingFolder); $scope.devices[device].ignoredFolders.push(pendingFolder);
$scope.saveConfig(); $scope.saveConfig();
} }
}; };