Clippy Lints page - Fix path watch triggering
This commit is contained in:
parent
f2e6a99a08
commit
2e4ef8e72c
@ -270,7 +270,7 @@
|
||||
}, true);
|
||||
|
||||
// Watch for changes in the URL path and update the search and lint display
|
||||
$scope.$watch($location.path, function (newPath) {
|
||||
$scope.$watch(function () { return $location.path(); }, function (newPath) {
|
||||
const searchParameter = newPath.substring(1);
|
||||
if ($scope.search !== searchParameter) {
|
||||
$scope.search = searchParameter;
|
||||
@ -292,12 +292,12 @@
|
||||
}
|
||||
});
|
||||
|
||||
$scope.$watch($location.search, function (newParameters) {
|
||||
$scope.$watch(function () { return $location.search(); }, function (newParameters) {
|
||||
if (!internalURLChange) {
|
||||
loadFromURLParameters();
|
||||
}
|
||||
internalURLChange = false;
|
||||
});
|
||||
}, true);
|
||||
|
||||
$scope.updatePath = function () {
|
||||
if (debounceTimeout) {
|
||||
|
Loading…
Reference in New Issue
Block a user