From 6b9fa76c01f4852be3e22c1a785589da9fb93bc0 Mon Sep 17 00:00:00 2001 From: Ben Norcombe Date: Wed, 8 Apr 2026 17:30:46 +0100 Subject: [PATCH] fix(gui): don't show local device under remote devices (ref #10563) (#10631) ### Purpose Regression was introduced in PR #10563 due to new devices grouping feature not utlising the otherDevices utility function to ensure the local device is not shown in the remote devices list ### Testing Open web GUI and ensure your local device isn't listed under Remote Devices ### Screenshots Regression before fix Screenshot_20260407_202526 Fix Screenshot_20260407_202656 ### Documentation N/A ## Authorship Ben Norcombe [bennorcombe@pm.me](mailto:bennorcombe@pm.me) Signed-off-by: Ben Norcombe Co-authored-by: Jakob Borg --- gui/default/syncthing/core/syncthingController.js | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/gui/default/syncthing/core/syncthingController.js b/gui/default/syncthing/core/syncthingController.js index 3fac51b00..234b0a05a 100644 --- a/gui/default/syncthing/core/syncthingController.js +++ b/gui/default/syncthing/core/syncthingController.js @@ -561,7 +561,6 @@ angular.module('syncthing.core') $scope.config.options._urAcceptedStr = "" + $scope.config.options.urAccepted; $scope.devices = deviceMap($scope.config.devices); - $scope.devicesGrouped = {}; for (var id in $scope.devices) { $scope.completion[id] = { _total: 100, @@ -569,10 +568,15 @@ angular.module('syncthing.core') _needItems: 0 }; - if ($scope.devicesGrouped[$scope.devices[id].group] === undefined) { - $scope.devicesGrouped[$scope.devices[id].group] = []; + }; + + $scope.devicesGrouped = {}; + const otherDevices = $scope.otherDevices(); + for (var id in otherDevices) { + if ($scope.devicesGrouped[otherDevices[id].group] === undefined) { + $scope.devicesGrouped[otherDevices[id].group] = []; } - $scope.devicesGrouped[$scope.devices[id].group].push($scope.devices[id]); + $scope.devicesGrouped[otherDevices[id].group].push(otherDevices[id]); }; $scope.folders = folderMap($scope.config.folders);