gui: Handle empty path in validation (ref #7379) (#7595)

This commit is contained in:
Simon Frei 2021-04-26 15:35:12 +02:00 committed by Jakob Borg
parent 9d29dbbe5d
commit 60e8630413
1 changed files with 3 additions and 0 deletions

View File

@ -24,6 +24,9 @@ angular.module('syncthing.core')
scope.folderPathErrors.isParent = false;
scope.folderPathErrors.otherID = "";
scope.folderPathErrors.otherLabel = "";
if (!viewValue) {
return true;
}
for (var folderID in scope.folders) {
if (folderID === scope.currentFolder.id) {
continue;