Fix NPE in plans manager while loading

This commit is contained in:
Joseph Schorr 2015-08-13 12:25:21 -04:00
parent 3ca9dad2dd
commit c84d2e750f

View file

@ -37,7 +37,7 @@ angular.module('quay').directive('planManager', function () {
return !$scope.isPlanVisible(superseded, subscribedPlan);
}
return plan.stripeId === subscribedPlan.stripeId;
return subscribedPlan && plan.stripeId === subscribedPlan.stripeId;
}
return true;