gui: fix setDeviceConfig updating devices with undefined key (#7339)

This commit is contained in:
Christian Prescott
2021-02-07 10:52:36 +01:00
committed by GitHub
parent 6db8dc33f2
commit d0c84916c7
@@ -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);