diff --git a/gui/default/syncthing/core/validDeviceidDirective.js b/gui/default/syncthing/core/validDeviceidDirective.js index 6002846f0..ca44ccc45 100644 --- a/gui/default/syncthing/core/validDeviceidDirective.js +++ b/gui/default/syncthing/core/validDeviceidDirective.js @@ -16,7 +16,7 @@ angular.module('syncthing.core') } }); //Prevents user from adding a duplicate ID - if ($scope.devices.hasOwnProperty(viewValue)) { + if (scope.devices.hasOwnProperty(viewValue)) { ctrl.$setValidity('unique', false); } else { ctrl.$setValidity('unique', true);