diff --git a/gui/default/syncthing/core/syncthingController.js b/gui/default/syncthing/core/syncthingController.js index 2c05cffa6..4fa231b4f 100755 --- a/gui/default/syncthing/core/syncthingController.js +++ b/gui/default/syncthing/core/syncthingController.js @@ -1781,7 +1781,7 @@ angular.module('syncthing.core') $scope.currentSharing.selected[n.deviceID] = true; }); $scope.currentSharing.unrelated = $scope.deviceList().filter(function (n) { - return n.deviceID !== $scope.myID && !$scope.currentSharing.selected[n.deviceID] + return n.deviceID !== $scope.myID && !$scope.currentSharing.selected[n.deviceID]; }); if ($scope.currentFolder.versioning && $scope.currentFolder.versioning.type === "trashcan") { $scope.currentFolder.trashcanFileVersioning = true; @@ -1879,7 +1879,7 @@ angular.module('syncthing.core') initShareEditing('folder'); $scope.currentSharing.selected[device] = true; $scope.currentSharing.unrelated = $scope.deviceList().filter(function (n) { - return n.deviceID !== $scope.myID && !$scope.currentSharing.selected[n.deviceID] + return n.deviceID !== $scope.myID; }); $scope.ignores.text = ''; $scope.ignores.error = null; diff --git a/gui/default/untrusted/syncthing/core/syncthingController.js b/gui/default/untrusted/syncthing/core/syncthingController.js index 5fa58ed63..e0696c106 100755 --- a/gui/default/untrusted/syncthing/core/syncthingController.js +++ b/gui/default/untrusted/syncthing/core/syncthingController.js @@ -1798,7 +1798,7 @@ angular.module('syncthing.core') $scope.currentSharing.selected[n.deviceID] = true; }); $scope.currentSharing.unrelated = $scope.deviceList().filter(function (n) { - return n.deviceID !== $scope.myID && !$scope.currentSharing.selected[n.deviceID] + return n.deviceID !== $scope.myID && !$scope.currentSharing.selected[n.deviceID]; }); if ($scope.currentFolder.versioning && $scope.currentFolder.versioning.type === "trashcan") { $scope.currentFolder.trashcanFileVersioning = true; @@ -1896,7 +1896,7 @@ angular.module('syncthing.core') initShareEditing('folder'); $scope.currentSharing.selected[device] = true; $scope.currentSharing.unrelated = $scope.deviceList().filter(function (n) { - return n.deviceID !== $scope.myID && !$scope.currentSharing.selected[n.deviceID] + return n.deviceID !== $scope.myID; }); $scope.ignores.text = ''; $scope.ignores.error = null;