Skip to content

Commit

Permalink
✨ (grapher) show facets when multiple entities are selected in single…
Browse files Browse the repository at this point in the history
…-entity mode (#4027)
  • Loading branch information
sophiamersmann authored Oct 9, 2024
1 parent 2f9d79d commit 96ff4f7
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/@ourworldindata/grapher/src/core/Grapher.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2584,6 +2584,13 @@ export class Grapher
)
return this.selectedFacetStrategy

if (
this.addCountryMode === EntitySelectionMode.SingleEntity &&
this.selection.selectedEntityNames.length > 1
) {
return FacetStrategy.entity
}

return firstOfNonEmptyArray(this.availableFacetStrategies)
}

Expand Down

0 comments on commit 96ff4f7

Please sign in to comment.