gui: fix setDeviceConfig updating devices with undefined key (#7339)
This commit is contained in:
@@ -1636,7 +1636,7 @@ angular.module('syncthing.core')
|
|||||||
};
|
};
|
||||||
|
|
||||||
function setDeviceConfig() {
|
function setDeviceConfig() {
|
||||||
var currentID = $scope.currentDevice.DeviceID;
|
var currentID = $scope.currentDevice.deviceID;
|
||||||
$scope.devices[currentID] = $scope.currentDevice;
|
$scope.devices[currentID] = $scope.currentDevice;
|
||||||
$scope.config.devices = deviceList($scope.devices);
|
$scope.config.devices = deviceList($scope.devices);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user