mirror of
https://github.com/bitwarden/browser
synced 2025-12-12 06:13:38 +00:00
handle org plans uncovered undefined case (#8008)
This commit is contained in:
@@ -288,12 +288,13 @@ export class OrganizationPlansComponent implements OnInit, OnDestroy {
|
|||||||
|
|
||||||
get selectablePlans() {
|
get selectablePlans() {
|
||||||
const selectedProductType = this.formGroup.controls.product.value;
|
const selectedProductType = this.formGroup.controls.product.value;
|
||||||
const result = this.passwordManagerPlans?.filter(
|
const result =
|
||||||
(plan) =>
|
this.passwordManagerPlans?.filter(
|
||||||
plan.product === selectedProductType &&
|
(plan) =>
|
||||||
((!this.isProviderQualifiedFor2020Plan() && this.planIsEnabled(plan)) ||
|
plan.product === selectedProductType &&
|
||||||
(this.isProviderQualifiedFor2020Plan() && Allowed2020PlanTypes.includes(plan.type))),
|
((!this.isProviderQualifiedFor2020Plan() && this.planIsEnabled(plan)) ||
|
||||||
);
|
(this.isProviderQualifiedFor2020Plan() && Allowed2020PlanTypes.includes(plan.type))),
|
||||||
|
) || [];
|
||||||
|
|
||||||
result.sort((planA, planB) => planA.displaySortOrder - planB.displaySortOrder);
|
result.sort((planA, planB) => planA.displaySortOrder - planB.displaySortOrder);
|
||||||
return result;
|
return result;
|
||||||
|
|||||||
Reference in New Issue
Block a user