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 GitHub
parent 74823e81e9
commit c53e5c5f17
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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;