Get the new context-sensitive new menu working

This commit is contained in:
Joseph Schorr 2015-04-07 18:33:43 -04:00
parent 40a6892a49
commit d09f2f6e22
13 changed files with 461 additions and 193 deletions

View file

@ -47,7 +47,7 @@ angular.module('quay').directive('teamsManager', function () {
};
var loadOrderedTeams = function() {
if (!$scope.organization) { return; }
if (!$scope.organization || !$scope.organization.ordered_teams) { return; }
$scope.orderedTeams = [];
$scope.organization.ordered_teams.map(function(name) {