Extra null check when loading plans
This commit is contained in:
parent
2997e5285c
commit
2c2c4d111b
1 changed files with 3 additions and 1 deletions
|
@ -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([]); });
|
||||
};
|
||||
|
||||
|
|
Reference in a new issue