diff --git a/gui/default/syncthing/core/syncthingController.js b/gui/default/syncthing/core/syncthingController.js index cc760bb82..2c05cffa6 100755 --- a/gui/default/syncthing/core/syncthingController.js +++ b/gui/default/syncthing/core/syncthingController.js @@ -1999,8 +1999,8 @@ angular.module('syncthing.core') time: (new Date()).toISOString() } - if (id in $scope.devices) { - $scope.devices[id].ignoredFolders.push(ignoredFolder); + if (device in $scope.devices) { + $scope.devices[device].ignoredFolders.push(ignoredFolder); $scope.saveConfig(); } }; diff --git a/gui/default/untrusted/syncthing/core/syncthingController.js b/gui/default/untrusted/syncthing/core/syncthingController.js index fa94ede17..5fa58ed63 100755 --- a/gui/default/untrusted/syncthing/core/syncthingController.js +++ b/gui/default/untrusted/syncthing/core/syncthingController.js @@ -2018,8 +2018,8 @@ angular.module('syncthing.core') time: (new Date()).toISOString() } - if (id in $scope.devices) { - $scope.devices[id].ignoredFolders.push(ignoredFolder); + if (device in $scope.devices) { + $scope.devices[device].ignoredFolders.push(ignoredFolder); $scope.saveConfig(); } };