From 53fd54e3085fdd2f958c37bcd28ad652b29b3d0c Mon Sep 17 00:00:00 2001 From: Simon Frei Date: Wed, 18 Nov 2020 13:33:19 +0100 Subject: [PATCH] gui: Remove erronous $ from scope in directive (fixes #7124) (#7125) --- gui/default/syncthing/core/validDeviceidDirective.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);