Skip to content

Commit

Permalink
🐛 (admin) only evaluate chart series names once Grapher is ready
Browse files Browse the repository at this point in the history
  • Loading branch information
sophiamersmann committed Dec 17, 2024
1 parent b2c21dc commit e0b3788
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/@ourworldindata/grapher/src/core/Grapher.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -885,6 +885,8 @@ export class Grapher
}

@computed get chartSeriesNames(): SeriesName[] {
if (!this.isReady) return []

// collect series names from all chart instances when faceted
if (this.isFaceted) {
const facetChartInstance = new FacetChart({ manager: this })
Expand Down

0 comments on commit e0b3788

Please sign in to comment.