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

This commit is contained in:
Christian Prescott 2021-02-07 02:52:36 -07:00 committed by GitHub
parent 6db8dc33f2
commit d0c84916c7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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);