Extra null check when loading plans

This commit is contained in:
Joseph Schorr 2014-05-05 12:54:54 -04:00
parent 2997e5285c
commit 2c2c4d111b

View file

@ -1098,7 +1098,9 @@ quayApp = angular.module('quay', quayDependencies, function($provide, cfpLoading
planDict[data.plans[i].stripeId] = data.plans[i];
}
plans = data.plans;
callback(plans);
if (plans) {
callback(plans);
}
}, function() { callback([]); });
};