Skip to content

Commit

Permalink
Merge 4d56f6b into f309e0a
Browse files Browse the repository at this point in the history
  • Loading branch information
shimedh committed Oct 5, 2018
2 parents f309e0a + 4d56f6b commit 4d4e673
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -241,8 +241,8 @@ export class PlanPriceSpecManager {
g.selectedSpec = g.additionalSpecs[0];
}

// Expand if selected spec is in the "all specs" list
g.isExpanded = g.selectedSpec && g.additionalSpecs.find(s => s === g.selectedSpec) ? true : false;
// Expand if selected spec is in the "all specs" list or all of the specs in the recommended list are disabled.
g.isExpanded = (g.selectedSpec && g.additionalSpecs.find(s => s === g.selectedSpec)) || g.recommendedSpecs.every(s => s.state === 'disabled') ? true : false;

if (!foundNonEmptyGroup && g.recommendedSpecs.length === 0 && g.additionalSpecs.length === 0) {
nonEmptyGroupIndex++;
Expand Down

0 comments on commit 4d4e673

Please sign in to comment.