gui: Prevent error without completion and nicer wrapping (fixes #4636)
GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/4637
This commit is contained in:
@@ -2054,7 +2054,7 @@ angular.module('syncthing.core')
|
||||
resetRemoteNeed();
|
||||
$scope.remoteNeedDevice = device;
|
||||
$scope.deviceFolders(device).forEach(function(folder) {
|
||||
if ($scope.completion[device.deviceID][folder].needItems === 0) {
|
||||
if ($scope.completion[device.deviceID][folder] !== undefined && $scope.completion[device.deviceID][folder].needItems === 0) {
|
||||
return;
|
||||
}
|
||||
$scope.remoteNeedFolders.push(folder);
|
||||
|
||||
Reference in New Issue
Block a user