From ce91190a7e6d79239d455ac677f6bd6a8a12588f Mon Sep 17 00:00:00 2001 From: Joseph Schorr Date: Wed, 6 Nov 2013 19:19:21 -0500 Subject: [PATCH] Fix race condition in the plan manager --- static/js/app.js | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/static/js/app.js b/static/js/app.js index 828792760..2d18ce90c 100644 --- a/static/js/app.js +++ b/static/js/app.js @@ -621,17 +621,8 @@ quayApp.directive('planManager', function () { $scope.planLoading = true; loadPlans(); - $scope.$watch('organization', function(organization) { - if ($scope.organization != organization && !$scope.user) { - loadPlans(); - } - }); - - $scope.$watch('user', function(user) { - if ($scope.user != user && !$scope.organization) { - loadPlans(); - } - }); + $scope.$watch('organization', loadPlans); + $scope.$watch('user', loadPlans); } }; return directiveDefinitionObject;