From 72f26c1e45c616256828330e8fcb2f2003530dbe Mon Sep 17 00:00:00 2001 From: Simon Frei Date: Tue, 22 Oct 2019 14:57:10 +0200 Subject: [PATCH] gui: Fix loop selecting all devices (fixes #5980) (#6102) --- gui/default/syncthing/core/syncthingController.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gui/default/syncthing/core/syncthingController.js b/gui/default/syncthing/core/syncthingController.js index ce0f8c167..445c32b8d 100755 --- a/gui/default/syncthing/core/syncthingController.js +++ b/gui/default/syncthing/core/syncthingController.js @@ -1401,13 +1401,13 @@ angular.module('syncthing.core') }; $scope.selectAllFolders = function () { - angular.forEach($scope.folders, function (id) { + angular.forEach($scope.folders, function (_, id) { $scope.currentDevice.selectedFolders[id] = true; }); }; $scope.deSelectAllFolders = function () { - angular.forEach($scope.folders, function (id) { + angular.forEach($scope.folders, function (_, id) { $scope.currentDevice.selectedFolders[id] = false; }); };