From d0c84916c7445a03e63a70b57690ee359a86349a Mon Sep 17 00:00:00 2001 From: Christian Prescott Date: Sun, 7 Feb 2021 02:52:36 -0700 Subject: [PATCH] gui: fix setDeviceConfig updating devices with undefined key (#7339) --- gui/default/syncthing/core/syncthingController.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gui/default/syncthing/core/syncthingController.js b/gui/default/syncthing/core/syncthingController.js index d55b81f7a..4219f991d 100755 --- a/gui/default/syncthing/core/syncthingController.js +++ b/gui/default/syncthing/core/syncthingController.js @@ -1636,7 +1636,7 @@ angular.module('syncthing.core') }; function setDeviceConfig() { - var currentID = $scope.currentDevice.DeviceID; + var currentID = $scope.currentDevice.deviceID; $scope.devices[currentID] = $scope.currentDevice; $scope.config.devices = deviceList($scope.devices);