From d87287c0d0319f30025cdc91824d9d5d58fdd40e Mon Sep 17 00:00:00 2001 From: Simon Frei Date: Fri, 5 Jan 2018 14:41:40 +0000 Subject: [PATCH] gui: Prevent error without completion and nicer wrapping (fixes #4636) GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/4637 --- gui/default/syncthing/core/syncthingController.js | 2 +- gui/default/syncthing/transfer/remoteNeededFilesModalView.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gui/default/syncthing/core/syncthingController.js b/gui/default/syncthing/core/syncthingController.js index 8e27440f..f441344b 100755 --- a/gui/default/syncthing/core/syncthingController.js +++ b/gui/default/syncthing/core/syncthingController.js @@ -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); diff --git a/gui/default/syncthing/transfer/remoteNeededFilesModalView.html b/gui/default/syncthing/transfer/remoteNeededFilesModalView.html index c7a09308..908daa2c 100644 --- a/gui/default/syncthing/transfer/remoteNeededFilesModalView.html +++ b/gui/default/syncthing/transfer/remoteNeededFilesModalView.html @@ -12,7 +12,7 @@
- +
Path